Can someone tell me how to validate sequence of numbers with one space and at the end there will be a optional special character say '#' and again followed by some 5 digits.
Example:
12345 6587#2584
I have tried with
(0(?:d{0,11}|(?=d* d*$)[d ]{0,12}))
but I don't know how to add optional '#' in the end followed by digits.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…