Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Regular Expressions

Regular Expressions

Slides of 'Kennislunch' presentation that I gave at Hoppinger HQ about Regular Expressions.

Avatar for Rolf van de Krol

Rolf van de Krol

August 21, 2012
Tweet

More Decks by Rolf van de Krol

Other Decks in Programming

Transcript

  1. • String comparison • "foo" == "foo" • "foo" ==

    "bar" • More complex • "foo bar baz" starts with "foo" • "foo bar baz" starts with "foo ", followed by one or more words that start with a "b" Matching
  2. • String comparison • "foo" == "foo" • "foo" ==

    "bar" • More complex • "foo bar baz" starts with "foo" /^foo/ • "foo bar baz" starts with "foo ", followed by one or more words that start with a "b" /^foo( b\w+)+$/ Matching