Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: new line every match

by ww (Archbishop)
on Jul 06, 2012 at 22:54 UTC ( [id://980392]=note: print w/replies, xml ) Need Help??


in reply to new line every match

A number of other issues have already been addressed, but not the poor design of the regex. It's hard to imagine a regex much more fragile than your
      /(address............)/ #13 dots for 13 characters.

Will you never need to deal with address 6435 main ave or address 643 main st?

Update re reply: ... then the regex (still fragile, IMO because I don't believe in perfect data) might be more readably written as
      /=~ /(address.{13})/

Replies are listed 'Best First'.
Re^2: new line every match
by starface245 (Novice) on Jul 06, 2012 at 22:59 UTC
    No, the number of characters are always exact

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found