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

Re: March a regex using split function

by BillKSmith (Vicar)
on Sep 13, 2017 at 13:29 UTC ( #1199300=note: print w/replies, xml ) Need Help??

in reply to March a regex using split function

A single example does not give us enough information to parse your input. My questions go far beyond the whitespace issues already discussed. All replies given so far assume that you want the first number after the first 'FREE'. Is that always true? Perhaps you need the first number after the first 'FREE' after the first 'HEAP' which is not preceded by 'NON-'. The number in your example is an integer. Always true? Can there be a newline anywhere in the record? The more that you tell us about your input, the better answer you are likely to receive.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199300]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-06-20 23:31 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.