I'm trying to make a trigger that will grab the numbers individually from the line below:
The problem is that there is a variable amount of spaces between each number depending if it is a one, two, three, or four digit number. My trigger looks like this:
Each (.*?) will either pick up a whole number or a single space. I have no idea why it would be useful to pick up a single space in a wildcard anyways....but is there a way to make a "smart" trigger that would only pick up the numbers regardless of the number of spaces?
EDIT:
To clarify: The values that it is currently picking up are "171", " 132", "", "77", " 134", and "". But it SHOULD be "171", "132", "77", 134", "76", and "98".
Str Int Wis Dex Con Luck Total
------------- ---- ---- ---- ---- ---- ----- -----
Natural : 171 132 77 134 76 98 688
...
The problem is that there is a variable amount of spaces between each number depending if it is a one, two, three, or four digit number. My trigger looks like this:
^Natural \: (.*?) (.*?) (.*?) (.*?) (.*?) (.*?) (.*?)$"
Each (.*?) will either pick up a whole number or a single space. I have no idea why it would be useful to pick up a single space in a wildcard anyways....but is there a way to make a "smart" trigger that would only pick up the numbers regardless of the number of spaces?
EDIT:
To clarify: The values that it is currently picking up are "171", " 132", "", "77", " 134", and "". But it SHOULD be "171", "132", "77", 134", "76", and "98".