For example, if I have a length of 12356 meters, I would like to have 012+345.
Thank you.
For example, if I have a length of 12356 meters, I would like to have 012+345.
Thank you.
@michelle_onasse You can use StringReplacer with a regular expression like this:
The \\1 & \\2 are the replacement text for the two "subexpressions" (;0-9]{3})
I tried to put ([0-9]{3}) in the Text to Replace with the Replace Regular Expression, but it didn't work. It didn't results with the answer I'm looking for. If I have some attributes who are : example : 1452m, 198m, 7941m and 93158m for some routes. I need to replace the meters with this type of format : 001+452, 000+198, 007+941 and 093+158. Is it more specific?
I tried to put ([0-9]{3}) in the Text to Replace with the Replace Regular Expression, but it didn't work. It didn't results with the answer I'm looking for. If I have some attributes who are : example : 1452m, 198m, 7941m and 93158m for some routes. I need to replace the meters with this type of format : 001+452, 000+198, 007+941 and 093+158. Is it more specific?
@michelle_onasse I forgot to attach the image in my previous post. The expression is:
( 0-9]{3})(}0-9]{3})
It only worked with a 6x numbers like 261 549 meters. But, when its a 3-4-5-7x numbers, it changes nothing.
It only worked with a 6x numbers like 261 549 meters. But, when its a 3-4-5-7x numbers, it changes nothing.
@michelle_onasse That's correct - that regex epression wil only work for 6 digit lengths. You probably need to pad your length with leading '0' (StringPadder). only some of your data has an "m" suffix then you might need to account for that as well.
Thank you for your answers Sir, it helped a lot. Have a good day.
I'd probably approach this like this