OpenToko: Regular Expressions
OpenToko: Regular Expressions
Date:
Tuesday 27 December 15:00 2011
Regular Expressions provide a concise and flexible means for searching (and replacing) text. It's basically a very compact language to describes what you are searching for. You can use it for example to scraping websites, find E-mail addresses, automatically add lightbox and captions to images and let it do a lot of mundane things you normally do by hand. You can use it in most programming languages and in a lot of text editors.
An example, the following script will give you all the alt tags from img tags in html, what ever is added inside the img element.
<img.*?alt=["'](.*?)["'].*?>
The plan is to give a short introduction, give some nice references and tools and then freak with some practical challenges.
Some interesting links:
Intro:
References:
Tools:
Present :
