0

Is ^/ a chracter type in PCRE?

Have seen it get mentioned in character classes. e.g. [^/]*.

Cannot find anything in Documentation

ThinkingMonkey
  • 12,539
  • 13
  • 57
  • 81

1 Answers1

4

The caret ^ at the beginning of a character class denotes negated character classes. So [^/]* means zero or more characters other than /, and [^0-9]+ matches any string of characters without any digits etc.

More details can be found here

Amarghosh
  • 58,710
  • 11
  • 92
  • 121