Well, if like me, you find it hard to make a regex expression to do whatever you want it to do, and not whatever it wants... you might want to try this tool:
txt2re: headache relief for programmers :: regular expression generator
I found it a couple months ago, and I thought I'd share it for everyone else.
You just paste a sample of what you want to filter, and then select using the colored boxes
It will produce an array of all those, then you just select the one you want.. and hopefully arrange it a little bit lol.. because the output code is not that good, so you might want to arrange it a little bit in your actual program.
It's interesting, but doesn't help much with the types of things I do.
Regular expressions are worth learning, but they take a bit of effort to get the hang of them.
Very interesting, might come in handy. Thanks for the post!
No problem.
@Winged: Well, this is good to help newbies with regex (or lazy people that are too lazy to learn regex)... so do you have any resource where we can actually learn it? I'd be willing to take a look at it.
This is a good starting resource: Regular-Expressions.info - Regex Tutorial, Examples and Reference - Regexp Patterns
I haven't found a good tutorial. The book "Mastering Regular Expressions" by O'Reilly press is excellent, however.
Regular Expressions Pocket Reference is 116 pages, but they're 1/4 size pages![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks