I have this regex [a-zA-Z]\d\d\\$\d\d-\d\d\d\d and my value is A11$12-9190. But it is not matching. Any clues?
-
That regex is not valid.Hovercraft Full Of Eels– Hovercraft Full Of Eels2011-10-27 16:00:44 +00:00Commented Oct 27, 2011 at 16:00
-
What's the actual Java string you're using?millimoose– millimoose2011-10-27 16:01:40 +00:00Commented Oct 27, 2011 at 16:01
-
You are escaping \ before the $ thus reaching the end of the string yet you are searching for more digits afterwards. Not possible.FailedDev– FailedDev2011-10-27 16:03:30 +00:00Commented Oct 27, 2011 at 16:03
Add a comment
|