I'm using a regex to get the data between two tags ( where the text should be). THen passing it through a html:parser method which converts the html encoding eg & in to the actual meaning.
if ($caption) {
my ($caption_src) = $mech->content() =~ m|<span\...
well it kind of works but i want it to take out everything inbetween. like if it is "hello how are is it u"
everything between how and u should be gone
i want to cut stuff out between two words in a string.
like suppose the string is "hello how are u" i want to pass how and u and have the string be returned as "hello how u". is there a function to do this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.