Re: regexps with multiple matches and extended ASCII characters

2002-01-04 Thread Jeff 'japhy' Pinyan
On Jan 4, Birgit Kellner said: >my $string = "!Rita 1983! and then some text and here is !Künne 1234! >and !Kußmaul 2001!"; >while ($string =~ /!(\w+)\s(\d{4})!/gi) { print "$1 and $2\n";} ># prints "Rita and 1983" >while ($string =~ /!(\C+)\s(\d{4})!/gi) { print "$1 and $2\n";} ># prints "Rita 1

regexps with multiple matches and extended ASCII characters

2002-01-04 Thread Birgit Kellner
use strict; my $string = "!Rita 1983! and then some text and here is !Künne 1234! and !Kußmaul 2001!"; while ($string =~ /!(\w+)\s(\d{4})!/gi) { print "$1 and $2\n";} # prints "Rita and 1983" while ($string =~ /!(\C+)\s(\d{4})!/gi) { print "$1 and $2\n";} # prints "Rita 1983! and then some text an