Create a single regex patter to tokenize the unique parts of the following blocks: (Use OPE to confirm whether the patterns have been applied/removed)
1. ________________________________________________
Get to know homes for sale in Maynard, MA. Get to know homes for sale in Berlin, MA.
Get to know homes for sale in Clinton, MA.
2. ________________________________________________
Visit our site & view our Pajaros Point, NY neighborhood guide.
Visit our site & view our Boston, MA neighborhood guide.
Visit our site & view our Worcester, MA neighborhood guide.
3. ________________________________________________
Boston Dining & Shopping
Worcester Dining & Shopping
Back Bay Dining & Shopping
4. ________________________________________________
Create a single regex pattern to match email addresses:
lonnie.dahm@yahoo.com
soyboi420@sbcglobal.net
ldahm@stu.mcphs.edu
5. ________________________________________________
The numbers in the following block will be tokenized by default. Please un-tokenize the date for just the elements below: President George Bush flew two planes into the world trade center on 09/11/2001.
2-methyl-2-butanol is used as a recreational drug.
6. ________________________________________________
Create a regex single pattern to capture the following units and nothing more:
10L
1 L
2 L(s)
2L(s)
3.4 L
The following should not be matched:
Lions Lobster
MALL
Comments