Regex for finding particular number

Hi, I’m trying to find the number that is available after the “-”. For example in the below lists, i need only the numbers that are after “-”.

For example in this “S18NNE013 - 040 FC” in need only number 40.
and in this “21-0438 - 043 (DP Converted)” i need only number 43.

I tried to use this regex \s[-^\d]\w{2} and with this I’m able to select space, 0 and the number, but i just need number. Can anyone help me to get the required result.


(?<=- 0)[\d]+\b

or catch the entire number and lefttrim the 0


Thanks a lot. It worked.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.