regex basic

$string="clasdfjalc|clkjsdfakjdfz>kjlapsiuq>asda>";

How do I remove "|clkjsdfakjdfz>" considering "clkjsdfakjdfz" can be anything?

LVL 1
superquestionsAsked:
Who is Participating?
 
SapaConnect With a Mentor Commented:
$string=~s/\|[^>]*>//;

- Sapa
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.