Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 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
  • Peter Brandstetter
    Peter Brandstetter
    7,163 Points

    Using variables for min. or max. length of a match

    Posted July 14, 2022 6:20pm by Peter Brandstetter
    Peter Brandstetter
    7,163 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    1 Answer

  • Vijay Sehgal
    Vijay Sehgal
    2,627 Points

    It takes a lot of time rendering. Why is this so?

    Posted October 9, 2019 4:36pm by Vijay Sehgal
    Vijay Sehgal
    2,627 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    0 Answers

  • Sanjay Noronha
    Sanjay Noronha
    7,296 Points

    Regex for treehouse using sets/character classes?

    Posted May 29, 2018 7:25am by Sanjay Noronha
    Sanjay Noronha
    7,296 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    2 Answers

  • nuri jeon
    nuri jeon
    14,376 Points

    Position of the elements in the set! :D I have a question!

    Posted March 5, 2018 12:24pm by nuri jeon
    nuri jeon
    14,376 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    1 Answer

  • nicole lumpkin
    PLUS
    nicole lumpkin
    Courses Plus Student 5,328 Points

    Using the + character at the end of a set

    Posted August 17, 2017 6:07pm by nicole lumpkin
    nicole lumpkin
    Courses Plus Student 5,328 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    2 Answers

  • Keith Ostertag
    Keith Ostertag
    16,619 Points

    Regex for teamtreehouse or treehouse?

    Posted July 29, 2017 7:27pm by Keith Ostertag
    Keith Ostertag
    16,619 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    5 Answers

  • Ryan Fadholi
    Ryan Fadholi
    5,168 Points

    Why the + sign in the set doesn't have to be escaped?

    Posted February 12, 2017 9:40am by Ryan Fadholi
    Ryan Fadholi
    5,168 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    2 Answers

  • vikas pal
    vikas pal
    11,563 Points

    explain sets in python

    Posted October 9, 2016 5:28am by vikas pal
    vikas pal
    11,563 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    1 Answer

  • Mona Jalal
    Mona Jalal
    4,302 Points

    confusion about \b

    Posted June 3, 2016 5:16am by Mona Jalal
    Mona Jalal
    4,302 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    1 Answer

  • Fred Young
    Fred Young
    15,523 Points

    Does a period need a backslash inside of square brackets?

    Posted May 18, 2016 1:15am by Fred Young
    Fred Young
    15,523 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    1 Answer

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Can we use "?" as a optional character

    Posted March 2, 2016 10:15am by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    1 Answer

  • C H
    C H
    6,587 Points

    Is \d required when \w is being used such as in the email address search?

    Posted September 7, 2015 4:52pm by C H
    C H
    6,587 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    1 Answer

  • Welby Obeng
    Welby Obeng
    20,340 Points

    Can someone explain the + well for me

    Posted February 26, 2015 7:57pm by Welby Obeng
    Welby Obeng
    20,340 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Sets

    3 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