Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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,136 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,136 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,746 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,746 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
    Jonathan Grieve
    91,254 Points

    Matching Character Ranges with Regex

    Posted September 2, 2017 9:29am by Jonathan Grieve
    Jonathan Grieve
    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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord