Jump to content

AnyLang Programming Language Comparison/Appendix:PLEAC Crossref:Pattern matching

From Wikibooks, open books for an open world

PatternMatching

[edit | edit source]

Introduction

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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

[edit | edit source]
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