Match either of the sequences de or abc : Sequence : Regular Expressions MySQL TUTORIALS


MySQL TUTORIALS » Regular Expressions » Sequence »

 

Match either of the sequences de or abc


mysql>
mysql> SELECT 'ABC' REGEXP 'ABC|DEF';
+------------------------+
'ABC' REGEXP 'ABC|DEF' |
+------------------------+
|                      |
+------------------------+
row in set (0.00 sec)

mysql>
mysql> SELECT 'ABC' REGEXP 'DEF|ABC';
+------------------------+
'ABC' REGEXP 'DEF|ABC' |
+------------------------+
|                      |
+------------------------+
row in set (0.00 sec)

mysql>
mysql>
mysql> SELECT 'ABC' REGEXP '^(ABC|DEF)$';
+----------------------------+
'ABC' REGEXP '^(ABC|DEF)$' |
+----------------------------+
|                          |
+----------------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Regular Expressions
» Sequence