Link to home
Start Free TrialLog in
Avatar of newtontech4
newtontech4

asked on

Learning regular expressions

I just took on deploying a system monitoring tool that requires extensive use of regular expressions.  Can any  one recommend a regex tool that allows me to maybe select text that needs to be captured from a log file and auto-magically build the perl regex expression for me or close to it?
ASKER CERTIFIED SOLUTION
Avatar of ddrudik
ddrudik
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I haven't seen one either.  It just would be VERY hard to make one that really worked well even for just one regex flavor or engine (i.e. Perl).  The difficulty mainly comes from the variety of uses and complexity of expressions.

There are experts here or in other places for hire that can make the expression for you.  If you want to learn expressions the first link Ddrudik provided is great, including the program available from that site RegexBuddy.  Many regex experts will also recommend "Mastering Regular Expressions" by Jeff Friedl (http://regex.info/).

If you post a question here for help making an expression then feel free to post the question's URL here in a comment.  Both of us would be happy to help.

bol
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For anyone finding this thread later that might be searching for an online tool to create anti-SPAM regular expressions for word variants, UFL has an interesting page for that purpose:
http://cs.medicine.ufl.edu/regex/

Look for "create variant expression" at the bottom of that page, enter a word, and a regex pattern matching the known variants (that is the variants built into the web page code based on the letters in the word) will be created.
newtontech4, did any of this help you?  Do you still need more information?
If you need regex for your monitoring tool, the best solution is to just learn regex. It's indispensible(in any language), and even across flavors, it doesn't change all that much...

I'd recommend starting here:
http://www.regular-expressions.info/
bigdogdman,

You have repeated the site recommended by the first expert, who actually posted directly to that site's tutorial.  Also this is pretty well abandoned by the asker and even EE it would seem.  In the future make sure to not just duplicate another expert's post.  

If you do because you are adding something then make sure to give credit.  It is nice to see you active in answering questions but make sure you follow site etiquette.

bol
Whoops, sorry, didn't realize I did that. I will pay closer attention in the future. :-)
Avatar of EE_AutoDeleter
EE_AutoDeleter

I've requested that this question be deleted for the following reason:

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Not enough information to confirm an answer.

If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Auto Deleter
I'm going to object to the auto-delete as I believe there are answers here that have PAQ value.