Solved

regex basic

Posted on 2001-06-21
1
162 Views
Last Modified: 2010-03-05
$string="clasdfjalc|clkjsdfakjdfz>kjlapsiuq>asda>";

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

0
Comment
Question by:superquestions
1 Comment
 
LVL 5

Accepted Solution

by:
Sapa earned 99 total points
ID: 6216700
$string=~s/\|[^>]*>//;

- Sapa
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to strip .csv from file name 9 78
Perl Scripting from a shell script with if and for 4 82
instmodsh - listing perl modules 2 73
Perl File::Find alternative 1 50
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now