約122件1ページ目

日本語のみで絞り込む

2018/5/22 -I want to replace dot (.) in a string with empty string like this: 1.234 => 1234 However following regex makes it totally empty. let x ...

2025/7/11 -The string.replace() function is used to replace a part of the given string with another string or a regular expression. The original string ...

2026/3/15 -Both replaceAll() and replace() with regex effectively replace all dots in a string. Use replaceAll() for simplicity in modern environments, or ...

2026/10/26 -The replace() method of String values returns a new string with one, some, or all matches of a pattern replaced by a replacement.

2023/2/28 -In JavaScript, you can use the replace() method to replace a string or substring in a string. The replace() method returns a new string with the ...

2024/9/13 -You don't really need regex for this. Just use string.replace in whatever language you are using and. You want to replace “/really” with “” (an ...

2024/3/1 -Use the `String.replaceAll()` method to remove all dots from a string, e.g. `str.replaceAll('.', '');`.

2024/9/13 -You can pass a function to replace() that dynamically generates the replacement string. let str = "The price is $10"; let ...

2019/10/18 -According to MDN, the replace method returns a new string after all or part of it has been replaced based on a replacement pattern/string. The ...

2021/7/20 -Hi Everyone, I tried to replace the '.' from the string '01.03.2021' with '-'. But unfortunately, it is replacing all the characters from ...