jdelmedi has asked for the wisdom of the Perl Monks concerning the following question:

Hello Everyone, I have an interesting regx problem I have been working on and can't seem to get. Here is a snippet out of my main code;
use strict; my $filename=''; my $target_directory=''; # EXPRESS server Target directory $target_directory = '\\\\express\f$\\exp_bak\\my.db'; $target_directory = s/$target_directory//gi; $filename = $target_directory; print $filename;
I am trying to extract my.db from the $target_directory utilizing one regx line only. The above print shows blank which makes sence. Anyones help is greatly appreciated.

updated by boo_radley. : added code tags.
Edit kudra, 2002-04-23 Changed spelling in title ('reg x' to 'regex') per ntc reqest

Replies are listed 'Best First'.
Re: REG X Help
by gav^ (Curate) on Apr 21, 2002 at 16:16 UTC
      Thanks very much, Best regards.