CIS 2250 Lecture 18: Regular Expressions Pt.2

6 views3 pages

Document Summary

If you"re searching for something, but then again somethings not there, that"s okay too! . The metacharacter ? appears after an optional character. Problem: match any variation on the date july 1, such as jul 1st, july first, jul first, etc . + means find one or more of the preceding item. If the item isn"t there, it"s false. At least one of the item has to be there. If the item isn"t there, it"s true. * means find zero or more of the preceding item. Match all legal variations of the html tags. The dash denotes a range, (e. g. [a-za-z] This works but allows no optional spaces insides the angle brackets which html does. < *h[1-6]* > matches , , < h4 >. Html doesn"t care how many spaces you have. Remember, the * says, zero or more of the preceding character.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers