Quote:
Originally Posted by pepak
2) I still don't understand why most of you people keep using the "m" flag, which is NOT suitable for the usage cases displayed in this thread. For example, Adolson's regexp should only use ?is, not ?ism.
|
Why is it not suitable? Multiline makes '^' and '$' match around internal newlines (see
here for details), something useful and in fact suitable for the regexp I used to solve the OP's problem. What behavior are you objecting to?