Skip to content
Prev 315773 / 398506 Next

Regex for ^ (the caret symbol)?

On 13-01-21 3:20 PM, Jeff Newmiller wrote:
I re-read the ?regex help page, and I think it does actually say this, 
so we don't even have a documentation error as I thought before.  When 
it is saying that ^ is a plain character except when it comes first, it 
is talking about first within a character class, e.g. [a^] meaning "a" 
or "^" as opposed to [^a] meaning "not a".

Duncan Murdoch


---------------------------------------------------------------------------