[Preston] Regular expressions: Topic for the June Meeting
Guy Heatley
guy.heatley at gmail.com
Sun Jun 1 22:21:51 BST 2008
Hello!
I'm pleased to announce that Dr John McMullin will be giving us the
benefit of his expertise in the field of regular expressions at the PLUG
meeting on Tuesday.
Regular expressions are a shorthand way of telling a computer program to
match certain patterns. They are useful in the field of text processing
(e.g. validating user input on web forms) and also in software like
compilers where high-level code must be transformed into machine code.
The lexical analyser looks for patterns in the code the programmer
writes in order to process it. e.g keywords, variable names, correct
syntax etc.
So, if you fancy a little pattern matching, and you would like to know
why this gibberish matches email addresses (on a case insensitive match
of course):-
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
come along on Tuesday evening, 7:30pm Room CM018 at the UCLAn C&T Building
Drinks afterwards in the Greyfriar, Friargate.
Cheers!
--
Guy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mailman.lug.org.uk/pipermail/preston/attachments/20080601/9bbcfcbb/signature.bin
More information about the Preston
mailing list