in reply to Regex trouble
$1 will contain the first dimension, and $2 will contain either the second dimension, or undef if it is missing.^(?!i|ddi)[a-z_]+(\d+(?:\.\d+)?)(?:[a-z](\d+(?:\.\d+)?))?
however, it may be better to check for ^i|ddi separately, as others have done.
|
|---|