Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Can "delayed-regex assertions" be nested...

by ddn123456 (Pilgrim)
on Feb 21, 2008 at 12:39 UTC ( [id://669260]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Can "delayed-regex assertions" be nested...
in thread Can "delayed-regex assertions" be nested...

Hi,

Thanks for both suggestions!

I just told him :-D

The objective is to get a list all required elements of @a not present in @b while @b may have optional elements.
The desired client goal is to have this in a fancy grep oneliner for easy hideous copy-pasting across the code snippets.

The 2 code snippets reach the objective in an "unfancy way".


@B = grep ( /(??{join( '|', @A)})/gi, keys %H ); @B = grep ( !/(??{join( '|', @B)})/gi, @A ); print "Delta:\n"; print Dumper(@B); foreach $i (@A){if (!(grep (/$i/i, keys %H))){print "$i\n";};};

  • Comment on Re^4: Can "delayed-regex assertions" be nested...

Replies are listed 'Best First'.
Re^5: Can "delayed-regex assertions" be nested...
by ddn123456 (Pilgrim) on Feb 21, 2008 at 13:41 UTC
    PS It' also a nice opportunity to broaden my perl view ;-).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2025-11-10 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (67 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.