PHP Regex delimiter
问题 For a long time, any time I've needed to use a regular expression, I've standardized on using the copyright symbol © as the delimiter because it was a symbol that wasn't on the keyboard that I was sure to not use in a regular expression, unlike ! @ # \ or / (which are sometimes all in use within in a regex). Code: $result=preg_match('©<.*?>©', '<something string>'); However, today I needed to use a regular expression with accented characters which included this: Code: [a-zA