regex
This will convert an example string into a regular expression. On the whole the regex generated is not general enough so normal usage is to input a string into the first text box, and then generalize so you maximize you captures.
To start, please type in a string to convert it to a regular expression.
Your regular expression is:
Examples:
123
→ (\d+)
abc
→ (\w+)
123abc
→ (\d+)(\w+)
Thu, 16 Nov 2006 05:18:43 +0100
→ (\w+),\s+(\d+)\s+(\w+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+\+(\d+)
Here is a ruby version:
regex
