About 160,000 results
Open links in new tab
  1. 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

  2. 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 …

  3. 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 …

  4. 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 …

  5. 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 …

  6. 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 …

  7. Can Anyone Explain. What is the "$1 $2" in first replace statement …

    Feb 22, 2020 · It’s the first and the second capturing groups. In regex, you can put a pattern in brackets (()). The brackets specify a capturing group: whatever matches in that group is …

  8. 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 () …

  9. Learn Regular Expressions by Building a Spam Filter - Step 24

    Sep 19, 2024 · Tell us what’s happening: Hi. I have passed this step by guessing, but I want to understand. I was confused by this hint: 3. Your freeRegex should use three character classes …

  10. Learn Regular Expressions by Building a Password Generator

    Jan 2, 2024 · Tell us what’s happening: It’s asking me to add a new tuple to the constraints list, using lowercase as the first item and a regex pattern that matches a single lowercase letter as …