Match the beginning of a string : Anchor Start : Regular Expressions MySQL TUTORIALS


MySQL TUTORIALS » Regular Expressions » Anchor Start »

 

Match the beginning of a string


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

mysql>
mysql> SELECT 'AA' REGEXP '^A';
+------------------+
'AA' REGEXP '^A' |
+------------------+
|                |
+------------------+
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
» Anchor Start