Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Removing blank/empty lines

by Athanasius (Chancellor)
on Dec 12, 2012 at 06:08 UTC ( #1008455=note: print w/replies, xml ) Need Help??


in reply to Re: Removing blank/empty lines
in thread Removing blank/empty lines

Good idea, but back-to-front! In a regex, ^ matches the beginning of a line, and $ matches the end of a line. See Regular Expressions.

(I always used to get these mixed up, too. Maybe it’s because $ is generally used as a sigil, and therefore we get used to seeing it come first in identifiers?)

Update: I see that marquezc329 has already corrected this in Re: Removing blank/empty lines.

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008455]
help
Chatterbox?
Discipulus a new life in prauge.. hmmm.. ;=)
LanX new life as prawn ... hmmm
[Eily]: LanX that sounds fishy to be honest

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2017-06-29 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (662 votes). Check out past polls.