All public logs

Jump to navigation Jump to search

Combined display of all available logs of Nikipedia. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
  • 2022-12-24T04:18:32 Nik talk contribs created page How do I insert a variable into a regex pattern in JavaScript? (Created page with "To insert a variable into a regex pattern in JavaScript, you can use the RegExp constructor and pass the pattern as the first argument, followed by the flags (if any) as the second argument. The variable can be included in the pattern by using the $ symbol followed by the variable name within curly braces, like this: <div style="background-color: #ddf5eb; border-style: dotted;"> const variable = 'foo'; const pattern = `\\b${variable}\\b`; const regex = new RegExp(patter...")