FMeinicke's Wiki

Home

❯

Coding

❯

JavaScript

❯

Test if a string matches a regex

Test if a string matches a regex

May 26, 20251 min read

  • js/regex/test

test

Source

  • https://stackoverflow.com/a/6603043/12780516
/^some regex$/.test("this string")

Graph View

Created with Quartz v4.5.0 © 2025

  • GitHub