Hi am looking for an Regular Expression which parses QueryString.Am using the below regex:
Pattern pr1=Pattern.compile("[\\?&](?<name>[^&=]+)=(?<value>[^&=]+)");
But its throwing
java.util.regex.PatternSyntaxException: Look-behind group does not have an obvious maximum length near index 18
[\?&](?<name>[^&=]+)=(?<value>[^&=]+)
^
Can anyone help me on
I don’t know what you are trying to accomplish with
"%5b^&=%5d+">. Sounds like it’s complaining about the>. This can help: http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/