in reply to Re: regular expressions query
in thread regular expressions query
If you are matching across newlines, are you not reading line by line? If the data is in one big string, perhaps you want something more like:
#!/usr/bin/perl my $txt = ' none bing some bong any bang '; while ( $txt =~ /^ {9}(\S+) {10}(\S+)\s*$/mg ) { print "'$1' '$2'\n"; }
|
|---|