14.01.2013 Views

Mastering Regular Expressions - Table of Contents

Mastering Regular Expressions - Table of Contents

Mastering Regular Expressions - Table of Contents

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Recall that the match operator returns different values based upon the particular<br />

combination <strong>of</strong> context and /g. The substitution operator, however, has none <strong>of</strong><br />

these complexities—it returns the same type <strong>of</strong> information regardless <strong>of</strong> either<br />

concern.<br />

The return value is either the number <strong>of</strong> substitutions performed or, if none were<br />

done, an empty string.[18 308] When interpreted as a Boolean (such as for the<br />

* My thanks to Hans Mulder for providing the historical background for this section,<br />

and for Randal for being Just Another Perl Hacker with a sense <strong>of</strong> humor.<br />

** If you, too, would like to see how many days are left until my birthday, just load<br />

http://omrongw.wg.omron.co.jp/cgi-bin/j-e/jfriedl.html<br />

or perhaps one <strong>of</strong> its mirrors (see Appendix A).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!