Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$exp="\/\^DMSC0022\\s+\\S+\\s+(\\w+)\$/"; $str="Logfile_Connection_Lost Hostname: $1"; $_="DMSC0022 X10 oswald"; if (eval $exp) { eval(print "$str\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex frustration
by diotalevi (Canon) on Sep 25, 2002 at 01:21 UTC | |
by BrowserUk (Patriarch) on Sep 25, 2002 at 01:38 UTC | |
by diotalevi (Canon) on Sep 25, 2002 at 02:16 UTC | |
by Anonymous Monk on Sep 25, 2002 at 02:42 UTC | |
by diotalevi (Canon) on Sep 25, 2002 at 02:43 UTC | |
|
Re: Regex frustration
by BrowserUk (Patriarch) on Sep 25, 2002 at 01:36 UTC | |
|
Re: Regex frustration
by ehdonhon (Curate) on Sep 25, 2002 at 01:13 UTC | |
|
Re: Regex frustration
by Aristotle (Chancellor) on Sep 25, 2002 at 16:13 UTC | |
by Anonymous Monk on Sep 27, 2002 at 15:19 UTC |