I\'m getting this odd error in the preg_match() function:
Warning: preg_match(): Compilation failed: range out of order in character class at offset 54
The l
Hi I got the same error and solved it:
Warning: preg_match(): Compilation failed: range out of order in character class at offset
.. Range out of order .. So there is a range defined which can't be used.
.. at offset N .. I had a quick look at my regex pattern. Position N was the "-". It's used to define ranges like "a-z" or "0-9" etc.
I simply escaped the "-".
\-
Now it is interpreted as the character "-" and not as range!