@PeterJones said in How to replace all content from XML tag with blank in notepad++?:
Nitpick: it’s the . operator that is affected by (?-s), not the *, since the s flag is “dot matches newline”. But . wasn’t used in your expression, either, so the flag-clearing is still useless. :-)
Yep, my bad, I stated a wrong reason, thank you for notice it :)
Well, not completely useless. As we help people in the forums, always including either (?-s) or (?s) will ensure we never have to care what the status of their checkbox is, so having one of the two in our default answer-regex is a good idea. ;-)
Agree, learned that in this forum, so the (?-s) modifier is my default setup.
Cheers