Java Regex - Examples of Logical Operators


Advertisements


Following are various examples of Logical Operators using regular expression in java.

S.N. Construct & Matches
1 XY

X followed by Y.

2 X|Y

Either X or Y.



Advertisements
E-Books Store