約124件1ページ目

日本語のみで絞り込む

2009/1/30 -One way to implement is by taking the value from a text field which is the one you want to replace and another is the "replace with" text field, ...

2025/8/5 -To dynamically create a regular expression (RegExp) in JavaScript using variables, you can use the RegExp constructor.

2020/1/6 -I am trying to figure out how to use Find & Replace with RegEx to manipulate text. In this case, want to set a variable using RegEx and then ...

2026/3/17 -Regular expressions are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects.

2021/6/22 -Hi everyone, I am trying to put inside a regex a variable but I cannot get the right results I want. I want to remove 40 characters from the ...

2022/12/13 -Hi, To get the match using a Javascript variable in regex pattern, you have to use replace(), but also a RegExp object. For example:

2020/6/8 -It's not reeeeeally a thing. There is the regex constructor which takes a string, so you can build your regex string which includes variables ...

2022/2/28 -So I'm working with Cypress and I'm attempting to understand how to verify a URL via regex matching; but I want to use several character ...

2022/10/10 -How to use a Variable in a Regular Expression in JavaScript ; newString = string.replace("dog", ; newString = string.replace(/dog/, ; word = "dog"; ...

Using String Methods ; match(regex), Returns an Array of results ; replace(regex), Returns a new String ; search(regex), Returns the index of the first match ...