Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: If I'm matching a pattern wy does a + sign make things crazy?

by Corion (Patriarch)
on May 05, 2020 at 08:42 UTC ( [id://11116472]=note: print w/replies, xml ) Need Help??


in reply to If I'm matching a pattern wy does a + sign make things crazy?

Can you show us a short example program with input data that allows us to reproduce your situation?

Note that your regular expression is somewhat greedy and will bridge links if they appear in the same block of text:

my $text = <<'HTML'; <a href="https://www.example.com/1">Link 1</a> Some plain text <a href +="https://www.example.com/2">Link 2</a> HTML

If you show us the representative input data you're using and the code you're using and the output you get, then we can better advise how to best match it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found