Kev Bellion wrote:
Just wondering if someone could explain the obvious issue with the below regEx and why is does NOT allow numbers...
A couple of simple tests both of which I would expect to be OK, but test 2 fails:-
Test 1: "This is a string" = OK
Test 2: "This is a string 123" = NOT OK
Cheers in advance
What you describe doesn't make sense. Can you post some code that shows this ?
Kevin P Smith
Joined: Feb 18, 2005
Rob Spoor wrote:Both succeed for me:
Yes, OK Eclipse is c--p!
Tried your example above and it worked for me too, which I'd expect as the RegEx (as far as I know) is correct.
Done a complete clean of my project in Eclipse and clean deploy (where it wipes your entire old app and re-deploys to the server rather than a standard deploy that just replaces file that have changed) and what you know, it works!!!
So it was some sort of Eclipse issue, not a code issue.