regular expressions for beginners

D

Daniel Harple

Works here[1]. What is your $TERM set at?

[1] After changing:
str.gsub! re, "#{st}\\&#{en}" to
str.gsub!(/#{re}/, "#{st}\\&#{en}") # gsub takes a string /or/ =20
regular-expression
 
C

Chad Perrin

M

Matthew Stott

------=_Part_10374_32530333.1136811773542
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

There is an excellent book from O'Reilly -
http://www.oreilly.com/catalog/regex2/
I've read it and it is by far and large the best regex tutorial available.

"Mastering Regular Expressions, Second Edition"

By Jeffrey E. F. Friedl
Second Edition July 2002
ISBN: 0-596-00289-0

-----------------------------------------------------

Full Description

Regular expressions are an extremely powerful tool for manipulating text an=
d
data. They have spread like wildfire in recent years, now offered as
standard features in Perl, Java, VB.NET and C# (and any language using the
NET Framework), PHP, Python, Ruby, Tcl, MySQL, awk, Emacs, and many other
popular tools and languages.

If you don't use regular expressions yet, you will discover in this book a
whole new world of mastery over your data. If you already use them, you'll
appreciate this book's unprecedented detail and breadth of coverage. If you
think you know all you need to know about regular expressions, this book is
a stunning eye-opener.

In spite their wide availability, flexibility, and unparalleled power,
regular expressions are frequently underutilized. Regular expressions allow
you to code complex and subtle text processing that you never imagined coul=
d
be automated. Regular expressions can save you time and aggravation. They
can be used to craft elegant solutions to a wide range of problems.

A command of regular expressions is an invaluable skill. Yet what is power
in the hands of an expert can be fraught with peril for the unwary.
Mastering Regular Expressions will help you navigate the minefield to
becoming an expert. Once you've mastered regular expressions, they'll becom=
e
an invaluable part of your toolkit. You will wonder how you ever got by
without them.

Mastering Regular Expressions, Second Edition has been thoroughly updated t=
o
include all the new features of Perl 5.8, as well as several other
languages, including Java, VB.NET, C#, Python, JavaScript, Tcl, and Ruby.
Written in the lucid, entertaining tone that made a complex, dry topic
crystal-clear to thousands of programmers, and sprinkled with solutions to
complex real-world problems, Mastering Regular Expressions offers a wealth
information that you can put to immediate use.

Topics include:


A comparison of features among different versions of many languages and
tools

How the regular expression engine works

Optimization (major savings available here!)

Matching just what you want, but not what you don't want

Sections and chapters on individual languages

------=_Part_10374_32530333.1136811773542--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top