Henrique de Moraes Holschuh wrote: > I just noticed your example "{My mailinglist}" would never match anyway. I > tried with "{Mailinglist post" and I could reproduce the bug. > Ouch. I go and fetch my "I am stoopid"-hat, just a sec...
>> (without the question mark, it will still match >> {SomeCharactersWithoutSpacesOrStuff} >> which is also bad, now that I think about it...) > > Correct. As far as I can find out in the Web, we really should be matching > only {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} - where x is any alphanumeric > character. Maybe without the last bracket. That would be more than > specific enough that I wouldn't care for anyone hitting a false positive :P > Ok, according to the responsible company: "CLSID [...] refer[s] to a 128-bit integer with a low statistical likelihood of being duplicated so that it can be used as a unique identifier across computers and networks. Typically, this identifier is represented either as a 16-member array of bytes or as a specially formatted string of hexadecimal digits (where the characters a-f, or A-F, represent the decimal numbers 10-15). This string representation consists of either 32 contiguous hexadecimal digits or of groups of 8, 4, 4, 4, and 12 hexadecimal digits, separated by hyphens. The hyphenated string representation optionally can be enclosed in parentheses or braces ({})." -- http://msdn2.microsoft.com/en-us/microsoft.aspnet.snapin.clsid.aspx So I guess we need sth. like \{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\} -- Martin Schuster <[EMAIL PROTECTED]> CenterPoint http://www.centerpoint.eu.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]