The output is:#!/usr/bin/perl while (<>) { print if m/(\d+)\D+(\d+)/; print "$1\n$2\n"; }
UPDATE: after reading next replies...tm@norad:~$ ./regex_test 123 testing... testing 456 123 testing... testing 456 123 456
In reply to Re: $1 and regex
by tmiklas
in thread $1 and regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |