Python Programming
Python Programming
Python Programming
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Regular Expressions<br />
Regular Expressions<br />
What is a Regular Expression?<br />
A string that is used to describe or match a set of strings, according to<br />
certain syntax rules.<br />
What can it be used for? Example:<br />
• Everyday, you are receiving a message (among others) from<br />
your application similar to this one:<br />
13/11/2007 08:01 Good morning Dr Jones. You have 3<br />
new messages.<br />
• How can we easily retrieve the number of messages for Dr<br />
Jones and the date and time, knowing that the date and time<br />
will change, that we might have other messages with a<br />
different name and that we are only retrieving the last<br />
message?<br />
39<br />
HP CONFIDENTIAL - ENABLEMENT ONLY, NOT FOR CUSTOMER USE.