Java Regex – Logical Operators


Java Regex – Examples of Logical Operators


”;


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

Sr.No Construct & Matches
1 XY

X followed by Y.

2 X|Y

Either X or Y.

Print

Leave a Reply

Your email address will not be published. Required fields are marked *