http://www.perlmonks.org?node_id=991073


in reply to how to to find the "/" in a string

The answer to the specific question you ask can be found in the first section of perlrequick:

Finally, the // default delimiters for a match can be changed to arbitrary delimiters by putting an 'm' out front:

"Hello World" =~ m!World!; # matches, delimited by '!' "Hello World" =~ m{World}; # matches, note the matching '{}' "/usr/bin/perl" =~ m"/perl"; # matches after '/usr/bin', # '/' becomes an ordinary char

But so you do less work up front, and endure less pain in the longrun, you might benefit from one of the many HTML parsers on CPAN.


Dave