From: <no...@so...> - 2001-10-14 20:02:59
|
Bugs item #471101, was opened at 2001-10-14 13:02 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=471101&group_id=10894 Category: 41. Regexp Group: 8.3.3 Status: Open Resolution: None Priority: 5 Submitted By: Jeffrey Hobbs (hobbs) Assigned to: Nobody/Anonymous (nobody) Summary: RE \A and ^ don't replace the same Initial Comment: When no options are specified, \A and ^ should be the same, but they don't seem to behave the same: (hobbs) 79 % regsub -all {\Aa} {aabbcc} {b} r 2 (hobbs) 80 % set r bbbbcc (hobbs) 81 % regsub -all {^a} {aabbcc} {b} r 1 (hobbs) 82 % set r babbcc whereas \Z seems OK: (hobbs) 83 % regsub -all {(\Aa|c\Z)} {aabbcc} {b} r 3 (hobbs) 84 % set r bbbbcb (hobbs) 85 % regsub -all {(^a|c$)} {aabbcc} {b} r 2 (hobbs) 86 % set r babbcb ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=471101&group_id=10894 |