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"; }
In reply to Re^2: regular expressions query
by qq
in thread regular expressions query
by apocalyptica
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |