2011 11-24 javaforum -- regex
DESCRIPTION
Slides from Staffan Nöteberg's Regex presentation at JavafOrum 2011 in Göteborg. www.staffannoteberg.seTRANSCRIPT
ff bff bwww.staffannoteberg.sewww.staffannoteberg.se
Prime numbersPrime numbersPrime numbersPrime numbers
Jamie Jamie ZawinskiZawinskiJamie Jamie ZawinskiZawinski
DevOpsDevOps BoratBoratDevOpsDevOps BoratBorat
ISO 8601 ISO 8601 -- Global TimeGlobal TimeISO 8601 ISO 8601 Global TimeGlobal Time
ISO 8601 ISO 8601 -- Global TimeGlobal TimeISO 8601 ISO 8601 Global TimeGlobal Time
GraphGraphGraphGraph
Finite AutomataFinite AutomataFinite AutomataFinite Automata
Stephen KleeneStephen KleeneStephen KleeneStephen Kleene
Regular ExpressionsRegular ExpressionsRegular ExpressionsRegular Expressions
Regex TraitsRegex TraitsRegex TraitsRegex Traits
# Declarative
# Domain Specific (DSL)p ( )
# No whitespace or delimiters# No whitespace or delimiters
#1: #1: ConcatConcat#1: #1: ConcatConcat
#2: Kleene Star#2: Kleene Star#2: Kleene Star#2: Kleene Star
#3: Alternation#3: Alternation#3: Alternation#3: Alternation
ParenthesesParenthesesParenthesesParentheses
ArchitectureArchitectureArchitectureArchitecture
QuantifiersQuantifiersQuantifiersQuantifiers
Quantifier AlgebraQuantifier AlgebraQuantifier AlgebraQuantifier Algebra
MetacharsMetachars: : ShrthndsShrthndsMetacharsMetachars: : ShrthndsShrthnds
Assert: AnchorAssert: AnchorAssert: AnchorAssert: Anchor
Character ClassCharacter ClassCharacter ClassCharacter Class
ModesModesModesModes
EscapeEscapeEscapeEscape
Char Class EscapeChar Class EscapeChar Class EscapeChar Class Escape
MetacharsMetachars: Unicode: UnicodeMetacharsMetachars: Unicode: Unicode
Assert: Assert: LookaroundLookaroundAssert: Assert: LookaroundLookaround
Greedy QuantifierGreedy QuantifierGreedy QuantifierGreedy Quantifier
Lazy QuantifierLazy QuantifierLazy QuantifierLazy Quantifier
Possessive QuantPossessive QuantPossessive QuantPossessive Quant
Capture & Back refCapture & Back refCapture & Back refCapture & Back ref
NonNon--capturingcapturingNonNon capturingcapturing
Atomic GroupAtomic GroupAtomic GroupAtomic Group