• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

regex basic

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

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

0
superquestions
Asked:
superquestions
1 Solution
 
SapaCommented:
$string=~s/\|[^>]*>//;

- Sapa
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now