ThinkingMonkey
ThinkingMonkey

Reputation: 12727

Is `^/` a chracter type in PCRE?

Is ^/ a chracter type in PCRE?

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

Cannot find anything in Documentation

Upvotes: 0

Views: 41

Answers (1)

Amarghosh
Amarghosh

Reputation: 59451

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

Upvotes: 4

Related Questions