What would be a regex to match period followed by any number of spaces and then a specific string?


that is, i want to match something like this .** , . ** , . **, etc..

and how do i get that match

Asked By: sdds



You can use this regular expression:


. matches a literal dot.

s* matches zero or more whitespace characters.

* matches a literal asterisk.

Answered By: Unmitigated
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.