Can some one suggest regular expression for below text
Signature
text text some more text
text
…
text )
I tried Signature\n.*\) but this only works for
Signature
text )
Basically an expression which starts with a given text, allows multiple new lines, and ends with ).
Thanks
The problem is that
.doesn’t match new-lined by default.A simple option is:
[^)]*will match all characters besides).I’m not sure if you have a Dot-All flag in flex. In JavaScript the
/sflag is missing, and the common work around is:In this case, you probably want to use a lazy quantifier,
*?, so you match until the first), and not the last.