[ad_1]
I want to have a regular expression to check if any of the below numbers has 22 and then extract it as ‘.022’. There can be space or 0’s before or after the digits 22 or a dot (.) in between. Could you please let me know how to achieve this. Similar to checking 22, I also have to check for 21, and if present then get as ‘.021’
" 0220"
"0220 "
" 220"
"220 "
" 22 "
"02.20"
" 2.2 "
"02.2 "
" 2.20"
2.2R0
2.2R* (anything)
Thanks
[ad_2]