Slides - University of Washington
Slides - University of Washington
Slides - University of Washington
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>University</strong> <strong>of</strong> <strong>Washington</strong><br />
Ling472 Introduction to Computational Linguistics<br />
Lecture 1:<br />
Introduction<br />
RegEx Examples<br />
• Find the English stops followed by a liquid<br />
grep [PDKBDGpdkbdg][lr]<br />
• Find any two vowels together<br />
grep [aeiou][aeiou]<br />
• Find the same letter, repeated<br />
egrep '([a‐z])\1'<br />
• Lines where sentences end with ‘to’<br />
egrep '( |^)to.'<br />
Monday, April 1, 2013<br />
58