span8
span4
span8
span4
Hi
I want to edit a few thousand attributes,basically adding a number of 0's in the middle and end of a string.For example I want 2017_420590 to become 2017_420000_590000.
I think I may have to use the StringFormatter to edit the string use regexpr,I am not experienced using regexpr however.
Thanks for any help in advance.
B
I think you can use AttributeManager text editor with the following expression:
@ReplaceRegEx(@ReplaceRegEx(@Value(_creation_instance),(?<=^.{8}),_),(?<=^.{8})|(?<=0$),000)
Edit: Including workspace
I don't think you can use regular expressions in the StringFormatter.You can probably use the StringReplacer to achieve the same thing,however.
What's the rule forwhereandwhento intruduce the zeros?
Detect and remove extra spaces with other characters1 Answer
How Can I match on an ASCII Control Character inside the StringReplacer?1 Answer
changedector match all attributes problem1 Answer
How can I test CityGML attribute's value?2 Answers
load attribute value into existing attribute fields4 Answers
© 2019 亚搏在线Safe Software Inc |法律