acdx Posted September 7, 2006 Share Posted September 7, 2006 I made this regular expression tester page if anyone's interested, makes testing your regular expressions easy and quick. The simplest one so far.[url=http://acdx.net/rex/]http://acdx.net/rex[/url]And hey, it's valid XHTML 1.0 [s]Transitional[/s] Strict Link to comment https://forums.phpfreaks.com/topic/20058-regular-expression-tester/ Share on other sites More sharing options...
effigy Posted September 8, 2006 Share Posted September 8, 2006 A couple of things:[list][*]I would report errors when there are errors instead of no matches.[*]If you submit a pattern with slashes, their escapes are shown in the textareas. For example,[tt] /\n/ [/tt]becomes[tt] /\\n/[/tt].[*]The string seems to only allow ASCII characters.[/list] Link to comment https://forums.phpfreaks.com/topic/20058-regular-expression-tester/#findComment-88071 Share on other sites More sharing options...
acdx Posted September 8, 2006 Author Share Posted September 8, 2006 All right, now errors are displayed (raw), also fixed the slashes. However, I'm not too successful with the last one. Link to comment https://forums.phpfreaks.com/topic/20058-regular-expression-tester/#findComment-88337 Share on other sites More sharing options...
effigy Posted September 8, 2006 Share Posted September 8, 2006 Paste some special characters (from charmap, .e.g.) into the box and submit--see how they are coming over in your $_POST. Link to comment https://forums.phpfreaks.com/topic/20058-regular-expression-tester/#findComment-88379 Share on other sites More sharing options...
acdx Posted September 8, 2006 Author Share Posted September 8, 2006 Ah.. I think what happens is special characters come over as html codes and get converted yet again by htmlspecialchars when printing into the textarea.. Link to comment https://forums.phpfreaks.com/topic/20058-regular-expression-tester/#findComment-88567 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.