O'Reilly logo

Reguläre Ausdrücke kurz & gut, 2nd Edition by Tony Stubblebine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Beispiele

Finde spider-man, Spider-Man, Spider Man/[Ss]pider[- ][Mm]an
Listing 1.35 Einfache Suche bei vi
Finde spider-man, Spider-Man, Spider Man, spiderman, SPIDER-MAN usw.
:set ic
/spider[- ]\=man
Listing 1.36 Einfache Suche bei Vim
Global <br> XHTML-konform in <br /> umwandeln
:set ic
: % s/<br>/<br \/>/g
Listing 1.37 Einfache Substitution bei vi
Global <br> XHTML-konform in <br /> umwandeln
: % s/<br>/<br \/>/ig
Listing 1.38 Einfache Substitution bei Vim
Urlify - URLs in HTML-Links umwandeln: % s/\(https\=:\/\/[a-z_.\\w\/\\
#~:?+=&;%@!-]*\)/< a href=
"\1">\1<\/a>/ic
Listing 1.39 Komplexere Substitution bei Vim

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required