- This topic has 8 replies, 5 voices, and was last updated 16 years ago by .
-
Topic
-
Hi all, We are receiving XML with decimal fields, where the minus sign is at the end of the field:
1234.5678- I want to use a regsub to change all occurences into
-1234.5678 I already have one that works:
regsub -all — “(>)(.*)(-)(<)" $msg "\1\3\2\4" msg But this also works for character fields ending with a minus sign, like:
test- So I would like to have a check that there is a decimal involved. I have tried a lot, but I can’t get it to work. Regular expressions always outsmart me…
Anyone have a clue?
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands
Viewing 7 reply threads
Viewing 7 reply threads
- The forum ‘Cloverleaf’ is closed to new topics and replies.