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


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 Sun Apr 5 1998