![]() |
Hopeless at regex: allowing '+' in permitted_uri_chars - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Hopeless at regex: allowing '+' in permitted_uri_chars (/showthread.php?tid=14499) |
Hopeless at regex: allowing '+' in permitted_uri_chars - El Forum - 01-05-2009 [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. Hopeless at regex: allowing '+' in permitted_uri_chars - El Forum - 01-05-2009 [eluser]xwero[/eluser] every regex meta character can be escaped by putting a backward slash in front of it. Hopeless at regex: allowing '+' in permitted_uri_chars - El Forum - 01-05-2009 [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...? |