Java Regular Expressions

From NovaOrdis Knowledge Base
Revision as of 21:18, 29 July 2017 by Ovidiu (talk | contribs) (→‎API)
Jump to navigation Jump to search

External

Internal

Overview

java.util.regex API

The general pattern for using regular expressions is the following:

Working code is available here:

https://github.com/NovaOrdis/playground/tree/master/java/regex/simplest


java.langString API

String s = "...";
s.matches(...);

Concurrent Usage Considerations


Matcher instances are NOT thread safe, create a matcher per thread