2012-02-15 jfokus2012 - regex applied
-
Upload
staffan-noeteberg -
Category
Education
-
view
771 -
download
3
description
Transcript of 2012-02-15 jfokus2012 - regex applied
Prime numbers
Cryptic?
Cryptic?
Cryptic?
Cryptic?
Cryptic?
Jamie Zawinski
XKCD
Regex Traits •Declarative
•No whitespace or delimiters
–literals, meta characters
and operators
•Domain Specific (DSL)
Requisite scents
Scent: Text to Type
Scent: Text to Type
Scent: Text to Type
Scent: Text to Type
Scent: Text to Type
Scent: Text to Type
Scent: Non-recursive
Scent: Not lucid
Scent: Emerging
Scent: Complex logic
Scent: Complex logic
Clean regex code •Correct
•Simple
(Still demands proficiency,
however)
Precedence
Escape
Lookarounds
Quantifiers
Quant Algebra
Backtracking
Lazy Quant
Shrthnds
Unicode
Character Class
Char Class Escape
Capture & Back ref
Non-capturing
Named Captures
Anchors
Modes
TDD
Regex Day!
Regex Day! •http://rekursiv.se/regexkurs
•5 mars
•Stockholm