$ perl -E ' $text = q{asddsyuhfurrh}; $item = $1 if $text =~ m{([^<]+)}; say $item;' dsyuhf $ #### $ perl -E ' $text = q{asddsyuhfurrhdsvnnhfurubb}; $item = $1 if $text =~ m{(.*)}; say $item;' dsyuhfurrhdsvnnhf $