regex - Extract values with ampersands from query string -
i want extract baz value following query string:
foo=bar&baz=qux&norf&corge=grault
the problem value of baz contains &. i've had success using lookhead this:
/baz=(.*)(?=[^=]*&)/
however, can't handle end of line or when there more 1 key-value after it.
is there regexp can handle this?
Comments
Post a Comment