in reply to Regular expressions

could yo be more especific please?
You can do this:
$_=<DATA>; chomp; ($htmlini, $something, $more, $htmlend)= m|(<html>)(/.*?/)([^<]*).*(</html>)|i; print join "\n", ($htmlini, $something, $more, $htmlend); __DATA__ <html>/something/more words<br/></html>

but I'm afraid that we need some more information about the text yo need to match.
Ah!, you can also read perl documentation about regular expresions:
perldoc perlre perldoc perlrequick

perl -le '$_=$,=q,\,@4O,,s,^$,$\,,s,s,^,b9,s,$_^=q,$\^-]!,,print'