in reply to Re: Matching text in a string
in thread Matching text in a string

It might well be that !=~ should be this: =~. See Corion's question re the logic.

UPDATE: Forget it, I did not read the OP's question carefully enough...

Replies are listed 'Best First'.
Re^3: Matching text in a string
by BrowserUk (Patriarch) on Apr 16, 2015 at 09:21 UTC

    I think the OPs logic is clear; he just mixed up his operator. (His implementation may also be flawed!)


    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". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked