November 2nd, 2011, 07:45 AM
Join Date: Nov 2011
Time spent in forums: 15 m 11 sec
Reputation Power: 0
Regex on a querystring
I'm trying to parse a search querystring.
Here's an example querystring.
When I get the value for 'k' in the querystring it comes out as
ALL(test1) "test2" ANY(test3) NONE(test4) (Author:test5 AND Description=test6)
I need to split this string into its constituent parts depending on the space characters but respecting the brackets:
So, I’d get it matched as...
(Author:test5 AND Description=test6)
It's the last line with the spaces inside the brackets that is causing me problems.
Thanks for any help.
Last edited by biomorph : November 2nd, 2011 at 07:46 AM.
Reason: spelling mistake