abap:regex
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| abap:regex [2017/01/03 17:16] – created ginko | abap:regex [2021/07/23 18:23] (current) – ginko | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Regex ====== | ====== Regex ====== | ||
| + | ===== Caractères spéciaux ===== | ||
| + | Les ancres de fin de ligne ('' | ||
| + | <code abap> | ||
| + | f = ' | ||
| + | IF find( val = f = ' | ||
| + | " Your process | ||
| + | ENDIF.</ | ||
| + | ===== Fonction prédéfinie ===== | ||
| + | La fonction '' | ||
| + | * -1 si pas de match | ||
| + | * 0 si début de la chaine | ||
| + | * 1, n sinon | ||
| + | |||
| + | ===== cl_abap_matcher ===== | ||
| + | |||
| + | **IMPORTANT** : Pour utiliser le matcher, il faut que la regex couvre tout le texte (genre commencer et finir par '' | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <code abap> | ||
| + | | ||
| + | | ||
| + | |||
| + | IF abap_true = matcher-> | ||
| + | * erstes Match | ||
| + | WRITE: / matcher-> | ||
| + | * zweites Match | ||
| + | WRITE: / matcher-> | ||
| + | ENDIF.</ | ||
abap/regex.1483460213.txt.gz · Last modified: 2017/01/03 17:16 by ginko
