PHP Regex Tutorials
First of all, let’s take a look at two special symbols: ‘^’ and ‘$’. What they do is indicate the start and the end of a string, respectively, like this: “^The”: matches any string that starts with “The”; “of despair$”: matches a string that ends in the substring “of despair”; “^abc$”: a string that starts [...]
Read more