I would like to use regular expression to represent a pattern with the following type of characteristics
1) It includes a continuous sequence of digit values. The length of this sequence it at least 1
2) There has at least one non-digit characters either before the first digit value of the above sequence, or after the last digit value of the above sequence, or both before and end. Therefore, the regular expression should be match the following examples:
A123 A123B #A123BNNN .123 -123+
On the other side,
AB123B123 is beyond the scope of the above pattern, since it has two sequences of digit values there. This question does not need to consider this scenario.
Hopefully, I have made this question clear.