« MySQL/Regex » : différence entre les versions
Contenu supprimé Contenu ajouté
Aucun résumé des modifications |
|||
Ligne 47 :
select REGEXP_REPLACE('hello+$ù^:world', '[^a-z]', ''); -- helloworld
</syntaxhighlight>
== REGEXP_SUBSTR ==
Extrait une sous-chaine. Ex :
<syntaxhighlight lang="mysql">
SELECT REGEXP_REPLACE(REGEXP_REPLACE('<html><title>Page 1</title>...</html>', '.*<title>', ''), '</title>.*', ''); -- Page 1
</syntaxhighlight>
== Références ==
|