Comp sci: regular expressions: caret, part 1

Self-tutoring about regular expressions: the tutor mentions a use of the caret symbol, ^.

It seems that, in regular expressions, “^” can mean “not” when it’s the first character inside of square brackets. For example, it seems that [^a-zA-Z] would refer to non-alphabetic characters.

Source:

ibm.com/docs

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply