What's this delimeter (^) in PHP regex functions
I am using the delimiter /..../
in regex and I am using the character ^
used to indicate the start of a line or negation when used in a character class. So when I came across the line below using ^....^
I was puzzled:
$t = "172,249,L,P";
preg_split("^,^", $t);
What does it mean if anything?
+3
source to share
2 answers