RegEx: Unterschied zwischen den Versionen
Aus MattWiki
Matt (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Notes for RegEx respectively Regular Expressions. Guide (german): https://t3n.de/news/regex-guide-t3n-552858/ == General Rules == {| class="wikitable" |+ st…“) |
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 19: | Zeile 19: | ||
! Meaning !! Example | ! Meaning !! Example | ||
|- | |- | ||
| Character | | Character class digit || d | ||
|- | |- | ||
| Character | | Character class character || w | ||
|- | |- | ||
| Character | | Character class whitespace || s | ||
|- | |- | ||
| Inversion of Character Classes || D, W, S, [^abc] | | Inversion of Character Classes || D, W, S, [^abc] |
Version vom 28. August 2021, 13:29 Uhr
Notes for RegEx respectively Regular Expressions.
Guide (german): https://t3n.de/news/regex-guide-t3n-552858/
General Rules
Type | Example |
---|---|
Literal | a b c 1 2 3 |
Meta character | ( ) ^ $ |
Meaning | Example |
---|---|
Character class digit | d |
Character class character | w |
Character class whitespace | s |
Inversion of Character Classes | D, W, S, [^abc] |
Single Character | . |
Multiplier | {42}, {4,20} |
One or multiple characters | + |
Zero or one character | ? |
Zero or multiple characters | * |
Grouping with alternatives | Tues)day |
Word and text boundaries | b ^ $ |