how do I make the http and https optional using in RegEx -
ok. should softball fix not programmer , bit under gun can't research , test. have following expression works great:
https?:\/\/([1-9]\d{0,3})\.website\.com\/.*type=abc.adv=abc1234
i have come find out our backend system strip off http:// of url this
http://123.website.com/?&guid=blahblahblah&page=something&type=abc&adv=abc1234&site={siteid} think regex fails in these situations. may wrong. can confirm or maybe provide way make "http(s)://" optional?
thx!
just group , make optional group.
(https?:\/\/)?([1-9]\d{0,3})\.website\.com\/.*type=abc.adv=abc1234
Comments
Post a Comment