Hi all:
I play a spanish mud with a screen reader and I needed to change the commas in decimal places for points so my reader would read them right..
I tried making a re with somethin glike (\d+),(\d+) but it would only do one comma and not the others.
An example of this would be somethign like
"Tienes 2,256,293,295 monedas de oro.
And I wanted the change the , for a . I was thinking on perhaps matching on every line and converting the number to string and string replacing it, but that's too much processing probably. Has anyone got a better idea?
Also, a friend needed to omit | and [ ] * in strings. Maybe ti could be done with the same process?
I play a spanish mud with a screen reader and I needed to change the commas in decimal places for points so my reader would read them right..
I tried making a re with somethin glike (\d+),(\d+) but it would only do one comma and not the others.
An example of this would be somethign like
"Tienes 2,256,293,295 monedas de oro.
And I wanted the change the , for a . I was thinking on perhaps matching on every line and converting the number to string and string replacing it, but that's too much processing probably. Has anyone got a better idea?
Also, a friend needed to omit | and [ ] * in strings. Maybe ti could be done with the same process?