If you need the filename separately considering the domain you might use Path::Tiny (or File::Basename) to split things up before you then apply your regex. It's semantically clearer what you're trying to do as well as isolating you from platform differences in directory separators.
my $filename = path( $path )->basename; my( $date, $time ) = $filename =~ m{## as others have shown}x;
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: How can I combine these two regular expressions?
by Fletch
in thread How can I combine these two regular expressions?
by thirtySeven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |