Hi.
I am stuck with 2 regular expressions.
Firstly, is it possible to return a match if nothing is matched? It seems silly really, but I need to use a regex to check if a number is 11 digits, otheriwise it must be 0. It should be possible using {0}, however it cant really return a match if nothing is matched :bemused:
Secondly, I need to check 2 parts of a string are different. Here is what I used; code[\1][/code]However, the \1 doesnt seem to work inside the [ and ]
Are either of these possible? I just cant work them out.
Thanks!
K.