Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Help for regex

by FloydATC (Chaplain)
on Apr 01, 2012 at 18:41 UTC ( #962906=note: print w/ replies, xml ) Need Help??

in reply to Help for regex

If all you really want to do is remove the tags, this should be enough:

my $string = "-<ID>A8W11200031</ID>"; $string =~ s/<.+?>//g; print $string . "\n";
Ofcourse, if your actual input contains other tags than what your sample input shows, you'll get funny results.

-- Time flies when you don't know what you're doing

Comment on Re: Help for regex
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962906]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2016-02-06 14:41 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (231 votes), past polls