lucy24 - 10:35 pm on Aug 20, 2013 (gmt 0)
doesn't match when there is NO hyphen
Uhm, why not? That's why I used * instead of +
Typo for something, but I'm not sure what? As printed, } would be the literal } character.
See first post. He needs to exclude consecutive hyphens.
Question: Would two or more consecutive hyphens ever occur? If not, you don't need to complicate the code. Alternatively, you could have a separate step that excludes
Really this is one of those questions that's easier to answer if you start by laying out in English exactly what you're trying to do.