Regular Expressions in Java

Package com.stevesoft.pat version 1.5.3

Home
Articles/Links
Mugs, T-shirts Comments/Raves
New in 1.5.3
A Game
An Online Test
Questions

Copyright/License
Download Free

 If you need a non-LGPL version
You Can Buy!

Online help...
Quick Start
Tutorial Part 1
Tutorial Part 2
Tutorial Part 3
Tutorial Part 4
Tutorial Part 5
Tutorial Part 6
Examples
Support
FAQ
Documentation

Useful apps...
Java Beautifier
Code Colorizer
GUI Grep
Swing Grep

Other stuff...
Phreida
xmlser

Unicode Support


  • Since Unicode recognizes three cases: Upper, Title, and Lower, it is important that the ignore case flag allow you to match on any of them.
  • Case of letters is controlled by a CaseMgr class. This class was designed to be simple so that you can replace it and obtain the properties you desire.
  • Special pattern matching. Did you ever want to match on a "letter" but did not want to be restricted to "[a-zA-Z]"? Package pat supports some special patterns that allow you to do this and similar things.
    PatternMeaning
    (??p)Match a Unicode punctuation character.
    (??uc)Match an upper case Unicode character.
    (??lc)Match a lower case Unicode character.
    (??P)Match a character that is not a Unicode punctuation character.
    (??s)Match a Unicode white space character.
    (??S)Match a character that is not a Unicode white space character.
    (??w) Match a Unicode alphabetic, decimal digit, or the '_' character.
    (??W) Match a character that is neither an alphabetic, a decimal digit, nor the '_' character.
    (??d)Match a Unicode decimal digit character
    (??D)Match a character that is not a Unicode decimal digit character.
    (??m)Match a Unicode math character
    (??M)Match a character that is not a Unicode Math character.
    (??c)Match a Unicode currency symbol character
    (??C)Match a character that is not a Unicode currency symbol.
    (??a)Match an alphabetic Unicode character.
    (??A)Match a non-alphabetic Unicode character.
  • For more information on Unicode, see http://www.unicode.org.