As you might know,Visual Studio’s Find and Replace feature allows us to use Regular Expression but I don’t know how to change something like this :
Math.round((document.getElementById('selectedproductPrixdock').value*document.getElementById('addxdock').value)*100)/100
to this one :
(Math.round((document.getElementById('selectedproductPrixdock').value*document.getElementById('addxdock').value)*100)/100).toFixed(2)
There are too much code like this on the page and changing them one by one is a big hassle.
Thanks in advance..
This doesn’t look like a very good candidate for regular expressions, as those are used to find/replace patterns. Deriving a pattern from this text would probably be a waste of time.
I’d just do this:
EDIT:
After re-reading your question, knowing each individual ID would make that tougher. Here’s a Regex that should work: