troubles with regex
Posted: Sun Sep 26, 2004 4:22 pm
here is query string:
"?sc=aa1&st=001010"
and i'm trying to match
either "?st=001010" or "&st=001010"
with:
i tried also:
all browsers i'm testing with tell me that something wrong with my regex...
but online regex verifiers say everything is ok...
can anyone please tell me where i'm wrong?
thanks
"?sc=aa1&st=001010"
and i'm trying to match
either "?st=001010" or "&st=001010"
with:
Code: Select all
location.search.match("/(&|\?)st=(0|1){6}/");Code: Select all
location.search.indexOf("/(&|\?)st=(0|1){6}/");but online regex verifiers say everything is ok...
can anyone please tell me where i'm wrong?
thanks