in reply to Two regex problems (easy)
open LOG, "home.txt" or die $!; while(<LOG>) { print "$1<br>" if m/\b([\w\d]+)$/; } close LOG;
for the second, I might try something like this
print "$1<br>" if m/\S+\s+[^\/]+\/(\S+)/;
I'm not sure I understand the problem to be solved in the second part though...
-Paul
|
|---|