Text: Find Numbers - Padded Numbers
Options
Thomas_937381
Posts: 196
in Questions
If I run Text: Find numbers over the following text, I get two matches:
645645
0004
- 645645
- 4
The leading zeros are left off for the second entry, though (4). Is this because of some kind of a number property in JavaScript? Would padding the number with the three zeros (000) be an enhancement to the action?
Tagged:
0
Best Answer
-
@Thomas_151920 Yes, it looks like returning the padded zeros would be an enhancement, because it's currently returning the numbers as integer values.
Text: Find words that match a pattern may be a good alternative action to use in which you could set a pattern like
####
to return0004
in the sample above.1