Upload
staffan-noeteberg
View
771
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Slides from Staffan Nöteberg's session at Jfokus 2011-02-15 jfokus2012 - regex applied
Citation preview
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