Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.

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

Comment on Re: Map: The Basics
Select or Download Code
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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-11-30 14:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (771 votes), past polls