in reply to Regular expressions
If this is exactly and all you want then
my $str ='<html>/something/more words<br/></html>'; my @bits = $str =~ m!(<html>)/([^/]+)/([^/]+)<br/>(</html>)!; print $_,$/ for @bits;
Gives
<html> something more words </html>
Of course, if what you've asked for is a simplification of your real requirements, then there are probably much better ways of doing what you really want, but you'd need to tell us what that is.
Nah! Your thinking of Simon Templar, originally played by Roger Moore and later by Ian Ogilvy
|
---|
In Section
Seekers of Perl Wisdom