Jump to content

Archived

This topic is now archived and is closed to further replies.

acdx

Regular Expression Tester

Recommended Posts

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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
All right, now errors are displayed (raw), also fixed the slashes. However, I'm not too successful with the last one.

Share this post


Link to post
Share on other sites
Paste some special characters (from charmap, .e.g.) into the box and submit--see how they are coming over in your $_POST.

Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.