[clug] Circumflex

Bryan Kilgallin (iiNet) kilgallin at iinet.net.au
Thu Aug 17 12:43:00 UTC 2017

Thanks, Eyal:

> In a regular expression the '^' (at the start) indicates that the 
> matching expression must be at the
> beginning of the examined string:

More special characters ^$

Used outside of the square brackets the ^ and $ sign will have new 
meanings. And yes, this is a big part of why Regex is a bit confusing to 
start up with. Instead of the ^ meaning “not these characters” it means 
“start of the string”.


I could use drill and practice exercises.

More information about the linux mailing list