12-29-2008, 03:31 PM
TheTominator wrote:
How about this one?
I'm not sure how Python does regexps. This should be suitable for Perl-alikes.
s/([KR])[^P]/\1,/
...
s/([KR])([^P])/\1,\2/
will not strip off the non-P following a K-or-R match
Any regular expressions gurus here?
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Any regular expressions gurus here? - by volcs0 - 12-29-2008, 08:24 AM
Re: Any regular expressions gurus here? - by TheTominator - 12-29-2008, 02:32 PM
Re: Any regular expressions gurus here? - by TheCaber - 12-29-2008, 03:31 PM
Re: Any regular expressions gurus here? - by TheTominator - 12-29-2008, 04:32 PM
Re: Any regular expressions gurus here? - by volcs0 - 12-30-2008, 02:22 AM
|