yes $ print 'x abc x' | sed 's/.*\(\<abc\>\).*/\1/' abc $ print 'x abc x' | sed 's/.*\([[:<:]]abc[[:>:]]\).*/\1/' abc $ print 'xabc x' | sed 's/.*\(\<abc\>\).*/\1/' # no match # xabc x $ print 'xabc x' | sed 's/.*\([[:<:]]abc[[:>:]]\).*/\1/' # no match # xabc x
On Tue, 14 Dec 2010 04:37:39 +0100 Roland Mainz wrote: > Does libast's regex support [[:<:]] and [[:>:]] used in FreeBSD to > mark begin and end of word boundaries ? _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
