Hi,
I am trying to match a literal full stop in regular expression. Expression is
if(Pattern.matches("[0-9]{2}\.{1}[0-9]{2,4}", freq))
I want to match 2 numbers followed by a full stop followed by 2-4 more numbers. However when i compile am getting error : illegal escape character and its pointing to the full stop?
Any help appreciated, this is my first time using regular expressions in
java, but was following api documentation and thought above was correct!