Re: Why is / a metachar in regular expressions ?
Re: Why is / a metachar in regular expressions ?
- Subject: Re: Why is / a metachar in regular expressions ?
- From: Jens Alfke via Cocoa-dev <email@hidden>
- Date: Wed, 18 Sep 2019 13:51:57 -0700
> On Sep 18, 2019, at 1:45 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> I don't see why / is a meta character.
> It does not appear anywhere else in the documentation as metacharacter.
In some languages "/" is used as the delimiter to begin/end a regular
expression, for example in sed where the substitution command is "s/old/new/".
So perhaps the underlying regex parser ignores "/" characters at the start/end
of the regex unless they're quoted?
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden