It's NOT doing the same thing is (?m). Apply your pattern to this sample:

Yum yum I munch this text.

I get:

YuyuImunchthistext.

On February 12, 2019 5:38:05 PM "@lbutlr" <[email protected]> wrote:

On 12 Feb 2019, at 15:29, Sam Hathaway <[email protected]> wrote:
How exactly are you applying this pattern? Is this in BBEdit’s find window? I can’t replicate what you’re seeing. (For me it replaces one span of spaces at a time, including any m that precedes it.)

Never mind, in BBEdit I am of course, doing a replace all (which is so ingrained I didn’t think about it at all).

As far as I can tell, this behaves identically to (?m)\s+ (which I understand, I think) and since BBEdit defaults (?m) to on, it is not needed, \s+ replace all with (nun) does the same thing.

➕

--
And what rough beast, its hour come round at last,
Slouches towards Bethlehem to be born?

--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.



--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to