Wacek Kusnierczyk <[email protected]> writes: > however, in that code the pattern was '[^\]]*' (with the idea that the > character ']' is a metacharacter and therefore must be escaped).
Inside bracket expressions the backslash is not special. Thus '[^\]]' is a pattern that matches a non-backslash character followed by ']', and '[\]' does not qualify. Andreas. -- Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
