At 13:20 07/02/2009 +0200, Andis Noname wrote:
In Latvian we are using 'comma' as standard decimal separator, but when I have to prepare scientific publication, even in local language, I usually have to change 'comma' to 'dot' in numbers and it's quite time consuming operation.

At 15:43 07/02/2009 +0200, Andis Noname wrote:
I spent some time with regular expressions, but it seems I'm too stupid for that.

I doubt you are stupid, but it may be that you happen not to know how to solve this problem.

Do you have any suggestions, what I have to write in field 'Replace with'. In the field 'Search for' I can write something like [0123456789],[0123456789].

That's close.  Try searching for
     ([0-9]),([0-9])
and replacing with
     $1.$2

The [0-9] string represents a digit, but yes: you could use your [0123456789] or [:digit:] instead. The two sets of (round) parentheses define those substrings as references. This is so that you can refer to each numeric part in the "Replace with" string as $1 and $2.

Note that this search will not find any numbers that start with the fractional separator and do not have a leading zero - but you may have been careful not to include any of those.

I trust this helps.

Brian Barker


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to