Welcome Guest, Not a member yet? Register   Sign In
Hopeless at regex: allowing '+' in permitted_uri_chars
#1

[eluser]Daniel H[/eluser]
Hi all,

Regex is not my strong point at all! Can anyone let me know how I can allow the plus symbol in uri strings?

Thanks,

Dan.
#2

[eluser]xwero[/eluser]
every regex meta character can be escaped by putting a backward slash in front of it.
#3

[eluser]Daniel H[/eluser]
Ah many thanks - so now I can allow +s, I can't allow %s?

So why doesn't the following...

a-z 0-9~%.:_\-\+\%

...allow this strring...

139+New+Kings+Road,+London

? The percentage sign is disallowed...?




Theme © iAndrew 2016 - Forum software by © MyBB