About 156,000 results
Open links in new tab
  1. Explain the uses of caret (^) in regex - The freeCodeCamp Forum

    Aug 28, 2018 · For example: /^([aeiouy])(.)/ indicates a string starting with a single vowel (the first capture group is a single vowel), followed by any single character (the second capture group is …

  2. Regex to match string containing two words in any order

    Dec 16, 2019 · Regex to match string containing two words in any order JackEdwardLyons December 16, 2019, 10:05pm 1

  3. Build a RegEx Sandbox - JavaScript - The freeCodeCamp Forum

    Aug 18, 2025 · Ok, so I’ve tried this a few ways and I’m a bit stuck. Replacing a regex matched text in a string is a breeze when it’s just one match. But when it’s several matches, it gets …

  4. Difference between /\w/ and /\w+/ ( Regex )? - JavaScript - The ...

    Feb 11, 2020 · Tell us what’s happening: Can someone tell me the difference between /\w/ and /\w+/ ? the “+” operator in regex is used for identifying repeating characters I am confused by …

  5. Build a Markdown to HTML Converter - The freeCodeCamp Forum

    May 19, 2025 · What your convertMarkdown function returns? There’s also another detail about convertMarkdown that’s relevant here. How does it get the input to convert? On what that …

  6. Replacement strings with dollar signs - The freeCodeCamp Forum

    May 8, 2020 · The dollar sign $ in regex means the end or the beginning of a string. So it means to stop when the $ is in the end or to start from a particular letter if the $ is on the front.

  7. Learn Regular Expressions by Building a Spam Filter - Step 12

    May 14, 2025 · Inside some parentheses: parameter1 => parameter1.method2 (parameter2)); Your .some () callback should take regex as the parameter. parameter1 = regex Your .some () …

  8. Build a RegEx Sandbox - JavaScript - The freeCodeCamp Forum

    May 13, 2025 · Tell us what’s happening: I can’t understand why the task is failing. My code works fine, it does everything as it is suppose to do. But still failing 2 tasks. When the inner HTML of …

  9. Using '?' in Regular Expressions - The freeCodeCamp Forum

    Jan 1, 2023 · Hi everyone, I am a bit confused when it comes to using ‘?’ in Regex syntax. My understanding is that ‘?’ is used in lazy matching as well as checking for zero or one of the …

  10. Replacing space and comma from a string using regex

    Oct 17, 2020 · Your regex doesn’t work because first, you’ve put the regex into quotes, so you’re checking if your string contains this substring: '/^[\s,]$/g'. It’s not evaluated as a regex …