Hello,
This sounds like something that would greatly help me, I often need to add a "0" to the end of multiple text, for instance change 650 to 6500.
Or maybe you know of another easier way.. Im not great at this programming stuff
Martin Brimble said:This sounds like something that would greatly help me
You're responding to a post that, at the time of writing, is five years old. It refers to MicroStation V8i, not MicroStation CONNECT.
Martin Brimble said:I often need to add a "0" to the end of multiple text,
What do you need that the Replace Text tool doesn't provide?
Regards, Jon Summers LA Solutions
To my knowledge the find/replace text tool cant add a "0" to multiple text bodies, that contain one number each.
Unless it does and Im missing a trick..? would be perfect solution if it can..?
Martin Brimble said:Unless I'm missing a trick?
The trick you're missing is Regular Expressions (RegEx). The MicroStation Find/Replace Text tool supposedly supports Regular Expressions. Unfortunately its support is incomplete.
The RegEx you need is a capture pattern. The pattern matches a string of digits and uses it in the replacement string. This RegEx captures a number (string of digits)...
(\d+)
The replacement string specifies that we use the first capture ($1) followed by zero...
$1
$10
Why am I telling you all this? Because our freeware Text Replacer understands Regular Expressions, including captures...