Basic HTML version of Foils prepared April 16,1996

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

From Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 Material -- April 16,1996. by Geoffrey C. Fox


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

in Table To:


© 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 Sat Sep 6 1997