Regular expression with script finder and replacer?

I have some numbers in a script, and I want to change them all into a string value instead of an integer. I could replace them all individually, but it would be very tedious. I came across regular expression, and I got the part of it finding the numbers in the script, but I’m not sure how you could replace them all.

Untitledada
That is what I have so far, but instead of replacing it with the number there, it actually puts what I put there, which makes sense. I also tried to use string.format, but that also failed. I’m most likely not knowing something, or am doing something wrong, so any help would be appreciated.

Find: number = ([0-9-.]+)
Replace: number = "\1"

7 Likes