javascript - Help with a regex -
i've got following sequence i'm attempting detect...#hl=b&xhr=a
b equal , equal anything.
i've got following.. doesn't appear working... (#hl=.+&xhr=)
know why?
i'm using javascript , values , b letters of alphabet.
(#hl=.+&xhr=.+)
, missed second .+
. depending on regex engine, should see escaping rules, braces or + have escaped. if want match whole string, braces not needed anyway, btw.
Comments
Post a Comment