Home | Documentation | Foundry | Examples | Demo | Download | Feedback | Books
jregex documentation

Getting started with jregex library

  • Pattern matching
  • Pattern searching
  • Replacing Updated!
  • Tokenizing Updated!
  • Filesystem utilities New!
  • Appendix A: Compilation flags
  • Appendix B: Using groups
  • Appendix C: Unicode
  • Appendix D: Backslash issues

    jregex API

    Syntax supported by jregex library

  • basic operations
  • characters ( "a" , "A" , ... )
  • character classes ( "[a-z0-9]" , "[^a-z0-9]" , "\d" , "\D" , ... )
  • named clases ( "\p{name}" , "\P{name}" )
  • combined classes ( "(?C1+C2-C3&C4)" )
  • anchors ( "^" , "$" , "\b" , "\B" , "\A" , "\Z" , ... )
  • groups ( "(REGEX)" , "(?:REGEX)" )
  • named groups ( "({Name}REGEX)")
  • backreferences ( "\1" , "\2" , ... )
  • named backreferences ( "{\NAME}")
  • quantifiers ( "ELEMENT?" , "ELEMENT*" , "ELEMENT+" , "ELEMENT{n}" , "ELEMENT{m,n}" , ... )
  • assertions ( "(?=REGEX)" , "(?!REGEX)" , "(?<=REGEX)" , "(?<!REGEX)" )
  • comments ( "(?# it's a comment )" )
  • special expressions ( "(?(condition)yes-pattern|no-pattern)" , "(?>REGEX)" , "(?@C1C2)" , ... )

    jregex library: advanced features

  • Named groups
  • Incomplete matching
  • Non-breaking search

    Some info on unicode blocks and categories

  • Categories
  • Blocks

    Links

  • PerRE manpage - an original source for perl5.6 regex syntax.
  • PerRE tutorial
  • Regular expression HOWTO - Python-oriented; from the very beginning to advanced concepts. Easy to read.
  • Regex syntax in java.util.regex - since JDK 1.4

  • Home | Documentation | Foundry | Examples | Demo | Download | Feedback | Books
    Copyright 2000-2002 S. A. Samokhodkin