I have data like ‘++0/5’, ‘-5’, etc. I want to find the first occurence of the numeric value: so ‘0’ and ‘5’ in this example.
How can I achieve that in EasyMorph ?
I have data like ‘++0/5’, ‘-5’, etc. I want to find the first occurence of the numeric value: so ‘0’ and ‘5’ in this example.
How can I achieve that in EasyMorph ?
I believe the shortest way would be to use regular expressions.
The regular expression to use here is [0-9]+
.
See example below.
regexp-numerics.morph (2.1 KB)
I have done it in a more complicated way.
Yours seem to be more interesting. Thanks.