Tool: Regular Expression Test
From CFTP
Contents |
About
Test your input against regular expressions by using this GUI Java tool.
Installing
- Download the latest binary version from http://cftp.coldcore.com/downloads-tl.html
- Unzip the file into any directory.
- Use the start script to run the application.
Manual
Run the application and the GUI window appears with two input fields. The top one is where you enter a regular expression and the bottom one is for the text to validate against the regular expression. Click on the TEST button to see if the text matches the regular expression.
Specifics
The test trims a regular expression [String.trim()] and uses the input text as it is. The test performs these two methods:
input.matches(regexp)
and
Pattern pattern = Pattern.compile(regexp); Matcher matcher = pattern.matcher(input); matcher.matches();
Those methods must provide the same results. In case of different results you will see a warning message. In case of a regular expression error you will see an error message.
Return to Tools and Utilities