Match the end of a string : Anchor End : Regular Expressions MySQL TUTORIALS


MySQL TUTORIALS » Regular Expressions » Anchor End »

 

Match the end of a string


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

mysql>
mysql>
mysql> SELECT 'AB' REGEXP '^A$';
+-------------------+
'AB' REGEXP '^A$' |
+-------------------+
|                 |
+-------------------+
row in set (0.01 sec)

mysql>



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Regular Expressions
» Anchor End