Regular Expressions in Java

Package com.stevenrbrandt.ubiq2.v10.pattwo

Blog
Home
Book
Mugs, T-shirts Pattwo License
support
old site


Donate towards my web hosting bill!

Welcome

Package Pattwo (updated 11/03/2008): Package pattwo is a new, from scratch, regular expression implementation that conforms (mostly) to the interface established by java.util.regex.
Some differences include:
  1. No stack overflows or out of memory errors. Ever.
  2. No backwards searches, i.e. (?<=X), (?<!X)
  3. No && inside entities, e.g. [[abc]&&[def]]. Only simple perl-type entity descriptions.
  4. Matcher can take a Reader object.
  5. Package name. To use it, replace "import java.util.regex.*" with "import com.stevenrbrandt.ubiq2.v10.pattwo.*".
Downloads: Brief Release Notes:
  1. v10: Fixed some transparent boundary issues.
  2. v9: added support for transparent bounds and made some bug fixes.
  3. v8: Fixed an issue with hitEnd().
  4. v7: Fixed various issues with $ and ^.
  5. v6:
    1. added useAnchoringBounds() / hasAnchoringBounds()
    2. fixed a bug relating to the [,\s] pattern and those like it.
  6. v5:
    1. Made hitEnd() work properly.
    2. Added regions.
    3. Bug fixes that affected patterns using alternations on group 0.
  7. v4: Many bug fixes relating to patterns similar to (a*)*, [-a], [a-].
  8. v1: Initail release