Basic HTML version of Foils prepared Sept 20 97

Foil 45 (?..) Constructs in Regular Expressions -II

From Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


modifier g ensures we match and remove all /* .. */ strings
modifier s treats newlines as part of string
modifier x means that whitespace ignored and # treated like a comment in conventional Perl
Note use of syntax s{old}[new] as equivalent to s%old%new%
One can use any types of parantheses such as s(old){new} etc.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 5 1998