Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-06-24 21:26 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.