Text: Find Numbers - Padded Numbers

Options

If I run Text: Find numbers over the following text, I get two matches:

645645
0004

  1. 645645
  2. 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?

Best Answer

  • Jeff_146001
    Jeff_146001 Posts: 296 admin
    Answer ✓
    Options

    @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 return 0004 in the sample above.