PatternMatching
Introduction
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Copying and Substituting Simultaneously
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching Letters
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching Words
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Commenting Regular Expressions
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Finding the Nth Occurrence of a Match
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching Multiple Lines
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Reading Records with a Pattern Separator
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Extracting a Range of Lines
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching Shell Globs as Regular Expressions
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Speeding Up Interpolated Matches
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Testing for a Valid Pattern
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Honoring Locale Settings in Regular Expressions
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Approximate Matching
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching from Where the Last Pattern Left Off
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Greedy and Non-Greedy Matches
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Detecting Duplicate Words
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Expressing AND, OR, and NOT in a Single Pattern
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching Multiple-Byte Characters
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching a Valid Mail Address
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Matching Abbreviations
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Program: urlify
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Program: tcgrep
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Regular Expression Grabbag
ada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.