Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: requesting small regex

by BrowserUk (Pope)
on May 07, 2012 at 18:35 UTC ( #969308=note: print w/replies, xml ) Need Help??

in reply to Re^2: requesting small regex
in thread requesting small regex

magine that those were not automatically converted to HTML codepoints.

Posting (small) quantities of Unicrap is the one time (I think) that <pre></pre> tags are justified.

I'm guessing that \P is 'not the named class'; and that {Alnum} is alpha-numeric. Is theRE no \P{Numeric}?

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^4: requesting small regex
by thundergnat (Deacon) on May 07, 2012 at 19:10 UTC
    I'm guessing that \P is 'not the named class';

    Good guess

    and that {Alnum} is alpha-numeric. Is theRE no \P{Numeric}?

    Yes, but it is spelled \P{Digit}. perldoc perlre has details.

    Note: I am replying more for the OPs benefit then yours. I am fully aware that you know about perldoc perlre, and are likely a far better perl programmer than I.


    BTW the OP DID want to split on non-alphanumerics not just non-numerics. Ok, (s)he did say non-alphanomerics but... ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969308]
[beech]: why is my butt itchy
Discipulus many countries without bidet.. is a big problem!
[beech]: who told you i call my butt france?
Discipulus ??
beech waves a white flag -- no detectible causes of itch

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2016-12-09 09:48 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (150 votes). Check out past polls.