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

Re: Map: The Basics

by elusion (Curate)
on Jan 12, 2001 at 02:08 UTC ( #51224=note: print w/replies, xml ) Need Help??


in reply to Map: The Basics

Pretty good, but make sure you watch your regex.
s/[.,!\?]\B//g
will match anything that has a boundry at the end. You need to escape the . Like this: s/[\.,!\?]\B//g

- p u n k k i d
"Reality is merely an illusion, albeit a very persistent one." -Albert Einstein

Replies are listed 'Best First'.
Re: Re: Map: The Basics
by chipmunk (Parson) on Jan 12, 2001 at 02:24 UTC
    In fact, inside a character class, a period matches a literal period. Although you can escape a period inside a character class if you want to, doing so is not necessary.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://51224]
help
Chatterbox?
[1nickt]: Corion I feel that way a lot when I look at the news...
[1nickt]: Brethren, I just noticed in the CPAN ticker Retry, which led me to Attempt, by Mark Fowler. Does anyone have experience with either of these utilities?
[Corion]: No. Back when I toyed with the idea, I found that writing the loop explicitly was usually less code than passing the configuration+ callback to the retrier...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-05-24 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?