Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

regex matching any character including spaces

Tags:

regex

Howto regex for matching a string, which contains characters and spaces ?

Text:

Blabla === This is my Text === Blablabla

My Regex so far:

===(.?)===

I would like to simply match:

=== This is my Text ===
like image 946
mcfly soft Avatar asked Jan 09 '15 08:01

mcfly soft


1 Answers

===(.*?)===

You missed the * or the quantifier.+ is the other quantfier.

like image 166
vks Avatar answered Sep 19 '22 09:09

vks