Regular Expressions 101

Library entries

Apache: if a url comes with & but without a ? starting the query param, replace the first & with a ?

Vote

1

Regular Expression
pcre

/
^(?!.*\?)(.*?)\&(.*?)$
/

Description

Loading markdown...
Submitted by anonymous - 2 years ago