I am attempting to replace all "begin" and "dur" attribute values in my SVG code with one-tenth of (or ten times) their current values, in order to speed up/slow down animation for testing/debugging purposes.
e.g. replace dur="900s" with dur="90s"
My current regex: \(dur\|begin\)="\([0-9.]+\)s?"
and the replacement: \1="\,(/ \2 10)s"
I receive the error Error evaluating replacement expression: (wrong-type-argument number-or-marker-p #("900" 0 2 (rear-nonsticky display (fontified t face (nxml-attribute-value)) 2 3 (rear-nonsticky (display) fontified t face (nxml-attribute-value))))