0
0
0xC0CAC01A2016-04-05 18:48:34
Programming
0xC0CAC01A, 2016-04-05 18:48:34

Regular expression meaning start of line, tab or space?

What's the best way to write a regular expression to match the start of a line, tab, or space?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pavlyuk, 2016-04-05
@pav5000

/(?:^|\s)/m

R
Rustam, 2016-04-06
@linuxoid6_9

here is a good resource for testing regexes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question