IE doesn’t support ES6, so you’ll have to stick with the original way of writing functions like these.
price = price.replace(/(.*)\./, function (x) {
return x.replace(/\./g, '') + '.';
});
Also, related: When will ES6 be available in IE?
More Related Contents:
- Find list of strings that matches a pattern that start with a special character « and end with a special character »
- Alternative version for Object.values()
- Template literals syntax is not working in IE11
- 5 stars and the golden 5 stars are not together (When browsing with Internet explorer)
- Not able to get Regular Expression in javascript
- ECMAScript 6 arrow function that returns an object
- One-liner to take some properties from object in ES 6
- Check if user is using IE
- Convert a string to a template string
- Regex to replace multiple spaces with a single space
- Intercept page exit event
- What is “function*” in JavaScript?
- javascript regular expression to check for IP addresses
- DOMNodeInserted equivalent in IE?
- replace all occurrences in a string [duplicate]
- Passing regex modifier options to RegExp object
- Regular Expression to reformat a US phone number in Javascript
- Why doesn’t instanceof work on instances of Error subclasses under babel-node?
- How to clone a javascript ES6 class instance
- Javascript split string on space or on quotes to array
- React.createClass vs. ES6 arrow function
- then() callback firing before promise is resolved in node.js [duplicate]
- ECMAScript 6: what is WeakSet for?
- Regular Expression for accurate word-count using JavaScript
- What does the forward slash mean within a JavaScript regular expression?
- Only numbers. Input number in React
- Extract parameter value from url using regular expressions
- ES6 module scope
- Javascript Regular Expression for rgb values
- How to escape backslash in JavaScript?