Regex Tester (zipped .exe)
C# Source Code
This tool allows me to rapidly test regular expressions against sample text with or without options.
If the Regex phrase is invalid, it will display the error text:
When I'm satisfied with the phrase and options, I click Copy Regex Initializer to copy it to the clipboard:
I can paste the copied text directly into my code after declaring the Regex object:
I hope you find it useful.
1 comment:
Nice!
I write a lot of REGEX'es in Oracle Database. I'm spoiled by the direct execution by the database because testing is just a matter of opening a SQL editor...
SELECT REGEXP_REPLACE('ORDER_NO=foo^LINE_NO=bar^', '^[A-Z_]*=([^^]*)\^[A-Z_]*=([^^]*)\^$', '\1 \2') FROM DUAL;
Post a Comment