regsub replacing the last off
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

regsub replacing the last off

From: Andre Arpin <arpin@kingston.net>
Date: Wed Dec 28 2005 - 18:38:51 CET

why is this true

% regsub {b(?:[^b]*$)} abcabcabc x
abcabcax

I would have expected
abcabcaxc

Is there a way to replace the last b?
Received on Tue Jan 3 03:09:26 2006