Welcome.
This will be a bi-polar blog. News about walking in Southeast England, and techie stuff about being a webmaster.
Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts
Regex : Tutorial
Regular expressions, or regex, are one of the best things about Perl. So good infact, that they been copied by most other programming languages.
They are sadly let down however by Perl "man pages" and the chapter in the 'Programming Perl' camel book which in no way does them justice. It explains them, but only in a way a Computer Science PHD student would understand.
So, here's my tutorial with lots of examples.
NB 1: this is based on Perl, but you can use them in Javascript, Python etc.
NB 2: once you understand this, you should be ready for the reference material
They are sadly let down however by Perl "man pages" and the chapter in the 'Programming Perl' camel book which in no way does them justice. It explains them, but only in a way a Computer Science PHD student would understand.
So, here's my tutorial with lots of examples.
NB 1: this is based on Perl, but you can use them in Javascript, Python etc.
NB 2: once you understand this, you should be ready for the reference material
Labels:
perl,
regular-expressions
Subscribe to:
Posts (Atom)