Regular Expressions regex

From ZENWorks Wiki

Jump to: navigation, search

Examples

Match 5 or more alpha characters followed by 5 or more numeric characters [A-Za-z]....[0-9]....

Test for any string ending with specified "-txt", but this is case sensitive. .*-txt$

Test for any string ending with specified "-txt" and this is case insensitive. (?i).*(-txt)$


I found a great RegEx Tester using java's RegEx utilities. I find it especially useful as I can run the tester locally and it matches the same java libraries as that of Novell's Identity Manager.

Java Essentials Test Harness


Great Java RegEex

Personal tools