A Helpful OGRE (regular expressions)

They have: 161 posts

Joined: Dec 1999

If you're having trouble understanding specifically what a regex is doing, and you need it explained, just ask the OGRE.

OGRE is the Online Gateway to Regex Explanation, and is just an online portal to the YAPE::Regex::Explain module (available on CPAN, and at my web site).

It's a very helpful tool. I hope it comes in handy here.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

very nice!!
..now, can you get one to go the other way? Wink

They have: 161 posts

Joined: Dec 1999

If you mean something that can turn:

"(1 to 3 digits, a period) 3 times, 1 to 3 digits"

to:

/(\d{1,3}\.){3}\d{1,3}/

Then that is currently in the works. Something LIKE it, at least. I'm not sure what "grammar" to accept.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

wow!
now that's something I think a lot of people would use to learn REGEX

They have: 334 posts

Joined: Dec 1999

Indeed! For those of us that consider regular expressions a cross between hieroglyphics, ancient Sanskrit and just plain voodoo, it would be nice to have an English to regex conversion utility available. That would be an extremely useful tool.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.