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 Quote Link to comment 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] Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.