upaksh has asked for the wisdom of the Perl Monks concerning the following question:
I want to have a regex to remove the word 'EXT::USCC::USCCAuth'. The $str can have following values also.my $str = "auth_plugin_stack = a,b,EXT::USCC::USCCAuth,c,d"; # should +return auth_plugin_stack = a,b,c,d
Thanks.my $str = "auth_plugin_stack = EXT::USCC::USCCAuth"; # should return a +uth_plugin_stack = my $str = "auth_plugin_stack = a,b,EXT::USCC::USCCAuth"; # should retu +rn auth_plugin_stack = a,b my $str = "auth_plugin_stack = EXT::USCC::USCCAuth,c,d"; # should retu +rn auth_plugin_stack = c,d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex to remove a word from string
by davido (Cardinal) on Dec 04, 2014 at 05:44 UTC | |
|
Re: regex to remove a word from string
by johngg (Canon) on Dec 04, 2014 at 10:13 UTC | |
|
Re: regex to remove a word from string
by mendeepak (Scribe) on Dec 04, 2014 at 05:55 UTC | |
|
Re: regex to remove a word from string
by Laurent_R (Canon) on Dec 04, 2014 at 07:51 UTC | |
|
Re: regex to remove a word from string
by upaksh (Novice) on Dec 04, 2014 at 09:15 UTC | |
|
Re: regex to remove a word from string
by Anonymous Monk on Dec 04, 2014 at 17:55 UTC | |
by Anonymous Monk on Dec 04, 2014 at 18:01 UTC |