Fix to nominal constant detection

Uses real regexp now, so constants like nabc123 are not considered
to be nominal