I'm developing a syntax analyzer by hand in Java, and I'd like to use regex's to parse the various token types. The problem is that I'd also like to be able ...
There is an existing regex in my code which is [^\s"']+|"[^"]*"|'[^']*'. My problem is that when i do something like:
[^\s"']+|"[^"]*"|'[^']*'
Matcher matcher = regex.matcher("INDIA \n PAKISTAN"); StringBuilder returnQuery = new StringBuilder(); ...