and change to
-- the parenthesized elements in the Find define "marked subexpressions" which can be recalled in the Change field using the enumerated Found Text codes.
Thanks Jongware! Works as advertised You just saved me a whole day of formatting. Thank you!
Thanks for this useful and timesaving information.
replace with $1~S$2
I think it have to be a non-breakable space between the number and the SI unit, so the number never will loose his unit.
Yes, but you need to be careful with the '\s' (Any Whitespace) wildcard. Hard returns and tabs, for instance, are also considered 'any whitespace'!
It might be safer to use a regular space here:
because this will only find occurrences without a space, due to the '?', or with a regular space -- and those are the ones you want to change.
Thanks for those precisions. I've seen that the "find" statements "take" the numbers followed by a text !
Do you think it's possible to restrict for some fixed units "c|k|hm" for cm, km, hm, ... in the search part?