Hello Experts,
Given the following URIs sample:
/index.site.rooms.98.html
/index.site.rates.665678.html
I need to capture the string which identifies the page with REGEX:
Rooms
Rates
Thanks
Hello Experts,
Given the following URIs sample:
/index.site.rooms.98.html
/index.site.rates.665678.html
I need to capture the string which identifies the page with REGEX:
Rooms
Rates
Thanks
$page =~ /^\/index\.site\.(.*?)\.(\d+)\.html$/;
my $room = $1;
my $num = $2;
Perl regex.