Menu
I had came across this kind of modifier in regex.
“/x” and it’s the little x.
What it does is, it matches a whole pattern across multiple lines, but not [I]that
“
/
=+ #lots of equal signs
.*
=+
/x
“
You basically write a pattern like that and it would match a piece of text like this:
=====
What I want to know is that, what if theres white space in between the
====
Blah
====
would it still match it? Or do you need a whitespace operator? And if you do need a whitespace operator, what measures need to be taken if there are multiple lines of whitespace? like
====
Blah
====
Thanks