Start a new topic

Regex: the ^ character

The ^ character is used to match:

  1. the beginning of a line
  2. anything not enclosed by the brackets [ and ]. It's also known as a negative character set.
Example of the latter:

image


Gives:

image


Login to post a comment