Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: RegExp: words excepstions list similar to characters' one.

by Anonymous Monk
on Jun 29, 2016 at 08:37 UTC ( [id://1166850]=note: print w/replies, xml ) Need Help??


in reply to [CLOSED] RegExp: words excepstions list similar to characters' one.

#!/usr/bin/perl -l # http://perlmonks.org/?node_id=1166843 use strict; use warnings; my $z = 'Web-developer, perl-program, explicit-element, function-call, + 2-x speed.'; print $z; $z =~ s/\b (?!(?:web|2)-) (\w+)- (?!(?:program|call)\b) (\w+)\b /$2 $1/gix; print $z;

Replies are listed 'Best First'.
Re^2: RegExp: words excepstions list similar to characters' one.
by nikolay (Beadle) on Sep 14, 2016 at 09:04 UTC

    Thank you very much, gods! -- Just what i looked for!

    At this i close the topic!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found