Regexp - (Flag|Modifier)

1 - About

Flag or modifier changes the behavior of the parsing.

3 - Example

A dot may matches new line or not. You specify it by specifying a flag.

Java Example with the DOTALL flag:

  • A pattern that capture the content between two XML nodes even if there is new line in there.

Pattern pattern = Pattern.compile("<top>(.*?)</top>",Pattern.DOTALL);

4 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap