regex - Regular Expression up to but do not include character -


this has been done before , have tried customize regex based on other entries in stack exchange having hard time grasping it...

what need match query string parameter in rewritecond , take parameter value of cond , insert in new string.

my cond is:

wt.mc_id=(\s+&|\s+$) 

this gives me close need. not want & in %1 value rewriterule.

so when gives me wt.mc_id=foo&bar=whatever want foo, not foo&. don't want empty string can check in code.

use regex instead:

(^|&)wt\.mc_id=([^&]*) 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -