🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • JASON LEE
    JASON LEE
    17,352 Points

    In the last example, inconsistent result \w* vs \w+

    Posted January 28, 2023 10:24pm by JASON LEE
    JASON LEE
    17,352 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Finding Repeated Characters

    1 Answer

  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,135 Points

    [^@.] + vs [^@.]*

    Posted January 14, 2022 1:49am by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,135 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Excluding Characters

    1 Answer

  • Victor Stanciu
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Victor Stanciu
    Full Stack JavaScript Techdegree Student 11,196 Points

    My solution

    Posted October 26, 2021 5:25pm by Victor Stanciu
    .a{fill-rule:evenodd;}techdegree
    Victor Stanciu
    Full Stack JavaScript Techdegree Student 11,196 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Groups

    1 Answer

  • Victor Stanciu
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Victor Stanciu
    Full Stack JavaScript Techdegree Student 11,196 Points

    My solution for this practice

    Posted October 26, 2021 4:52pm by Victor Stanciu
    .a{fill-rule:evenodd;}techdegree
    Victor Stanciu
    Full Stack JavaScript Techdegree Student 11,196 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Excluding Characters

    1 Answer

  • Jeffrey Holcomb
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jeffrey Holcomb
    Full Stack JavaScript Techdegree Graduate 17,506 Points

    No option to match at line breaks for ^$

    Posted March 20, 2021 2:17am by Jeffrey Holcomb
    .a{fill-rule:evenodd;}techdegree seal-36
    Jeffrey Holcomb
    Full Stack JavaScript Techdegree Graduate 17,506 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Beginning and Ending of Strings

    1 Answer

  • Piotr Manczak
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Piotr Manczak
    Front End Web Development Techdegree Graduate 29,609 Points

    Why does it work? I tried to match regular expressions.

    Posted December 7, 2019 4:03pm by Piotr Manczak
    .a{fill-rule:evenodd;}techdegree seal-36
    Piotr Manczak
    Front End Web Development Techdegree Graduate 29,609 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Groups

    1 Answer

  • Vivian Centeno
    Vivian Centeno
    2,655 Points

    Regex exercise(Group)

    Posted August 31, 2019 12:37am by Vivian Centeno
    Vivian Centeno
    2,655 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Beginning and Ending of Strings

    1 Answer

  • Routine Poutine
    Routine Poutine
    26,050 Points

    Redirect Notice

    Posted August 28, 2019 12:56am by Routine Poutine
    Routine Poutine
    26,050 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • What is a Regular Expression?

    1 Answer

  • huckleberry
    huckleberry
    14,636 Points

    Am I missing something here with the exclude??

    Posted May 5, 2019 9:21am by huckleberry
    huckleberry
    14,636 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Using Wildcard Characters

    1 Answer

  • DANIEL CALDERON V
    DANIEL CALDERON V
    8,407 Points

    How can I do the second exercise?

    Posted December 20, 2018 5:04pm by DANIEL CALDERON V
    DANIEL CALDERON V
    8,407 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Finding Repeated Characters

    6 Answers

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    Regular Expressions - Groups

    Posted July 19, 2018 9:59am by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Groups

    2 Answers

  • Kieran Barker
    Kieran Barker
    15,028 Points

    How can I match 'ladybug' and 'fading rug!' in RegEx only using the '?', '.' or '[]' special characters?

    Posted April 8, 2018 1:00pm by Kieran Barker
    Kieran Barker
    15,028 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Matching Specific Characters

    3 Answers

  • nfs
    nfs
    35,526 Points

    What's the answer to practice no.2 in regex excluding characters?

    Posted January 5, 2018 6:10am by nfs
    nfs
    35,526 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Excluding Characters

    5 Answers

  • Julio Akiyama
    Julio Akiyama
    9,068 Points

    Is it correct?

    Posted September 17, 2017 6:05am by Julio Akiyama
    Julio Akiyama
    9,068 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Matching Character Ranges

    1 Answer

  • tjeiosajfdksl
    PLUS
    tjeiosajfdksl
    Courses Plus Student 8,981 Points

    I can't get match with #2

    Posted September 13, 2017 1:56pm by tjeiosajfdksl
    tjeiosajfdksl
    Courses Plus Student 8,981 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Matching Character Ranges

    4 Answers

  • tjeiosajfdksl
    PLUS
    tjeiosajfdksl
    Courses Plus Student 8,981 Points

    I can not match #4 please help

    Posted September 13, 2017 1:37pm by tjeiosajfdksl
    tjeiosajfdksl
    Courses Plus Student 8,981 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Matching Specific Characters

    7 Answers

  • Travis Fulton
    Travis Fulton
    13,620 Points

    A better regex tester

    Posted September 12, 2017 4:16pm by Travis Fulton
    Travis Fulton
    13,620 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Matching Specific Characters

    1 Answer

  • Jonathan Grieve
    MOD
    Jonathan Grieve
    Treehouse Moderator 91,254 Points

    Matching Character Ranges with Regex

    Posted September 2, 2017 9:29am by Jonathan Grieve
    Jonathan Grieve
    Treehouse Moderator 91,254 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Matching Character Ranges

    2 Answers

  • mohamedmousa
    mohamedmousa
    289 Points

    what is the answer for practice number 1 ??

    Posted August 23, 2017 5:15pm by mohamedmousa
    mohamedmousa
    289 Points
    • JavaScript
    • Regular Expressions in JavaScript
    • Regular Expressions
    • Excluding Characters

    6 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.