Miscellaneous ⇒ Chit-Chat ⇒ Regex Analysers ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexChit-Chat

Regex Analysers Reply to topic


Those of you who can read Regular Expressions as easily as written text can skip this post. But for the rest of us ... Wink

I mentioned a while back that this Regular Expression Analyzer was a great help debugging a Regex, esp. one originally written by someone else.

Thought I should note a new one I stumbled on yesterday Regular Expression 101. Functionality is equivalent, but seems a clearer layout with a cheat sheet on the same page too. The real advantage is that a Regex test match tool is integrated in!

Both have the ability to share a Regex: the myezapp one passes it all as url parameters, but the 101 one also allows test cases to be saved and uses a tiny url.

As an example here's one I was working on yesterday, to validate a url path only to an image (ie the actual filename had already been stripped). Goal was to allow dots in the domain name, but not in any of the directories - to avoid a url like www.domain.tld/malware.php followed by a /filename.jpg

myezapp
http://www.myezapp.com/apps/dev/regexp/show.ws?regex=%28%3F%3Ahttps%3F%5C%3A%5C/%5C/%29%3F%28%5B%5E%5C.%5D+%5C.%3F%5B%5E%5C.%5C/%5D+%5C.%5B%5E%5C.%5C/%5D+%5B%5E%5C.%5D+%29&env=env_perl

101
http://regex101.com/r/wL5tL2

Feel free to comment on my poor regex skills Laughing

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


Regular Expressions are dark matter to me, I don't know why i'm so scared to write my own!, nice resources BTW.

www.greenday2k.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


greenday2k wrote
Regular Expressions are dark matter to me, I don't know why i'm so scared to write my own!, nice resources BTW.


Agree wholeheartedly! That's why I've got about a dozen Regex tools bookmarked! The latest 101 one could replace them all though, I think / hope.

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4

All times are UTC


Jump to: