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
  • Aleksandar Stankovic
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aleksandar Stankovic
    Python Development Techdegree Student 9,648 Points

    A small error in code?

    Posted April 23, 2020 3:40pm by Aleksandar Stankovic
    .a{fill-rule:evenodd;}techdegree
    Aleksandar Stankovic
    Python Development Techdegree Student 9,648 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    3 Answers

  • walter fernandez
    walter fernandez
    4,992 Points

    hi, what is re.verbose for? thanks

    Posted March 21, 2020 2:08am by walter fernandez
    walter fernandez
    4,992 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    3 Answers

  • Manyung Tah
    Manyung Tah
    7,445 Points

    regex negation help?

    Posted May 25, 2018 8:48am by Manyung Tah
    Manyung Tah
    7,445 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    1 Answer

  • Flore W
    Flore W
    4,744 Points

    Negation Regex I need help with \b

    Posted March 6, 2018 8:56pm by Flore W
    Flore W
    4,744 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    1 Answer

  • Serdar Halac
    Serdar Halac
    15,259 Points

    Why does [^gov\t] not get rid of the ".com" part as well as the .gov part?

    Posted January 7, 2018 7:20am by Serdar Halac
    Serdar Halac
    15,259 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    1 Answer

  • Quinton Dobbs
    Quinton Dobbs
    5,149 Points

    Workspaces and my terminal are giving different output for the same code

    Posted October 20, 2017 7:07pm by Quinton Dobbs
    Quinton Dobbs
    5,149 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    2 Answers

  • Lingjian Kong
    Lingjian Kong
    6,330 Points

    Don't understand word boundaries

    Posted April 14, 2017 3:44pm by Lingjian Kong
    Lingjian Kong
    6,330 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    3 Answers

  • Ullas Savkoor
    Ullas Savkoor
    6,028 Points

    Does findall() also include newline character by default?

    Posted March 10, 2017 4:43pm by Ullas Savkoor
    Ullas Savkoor
    6,028 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    1 Answer

  • Yuda Leh
    Yuda Leh
    7,618 Points

    I am not getting the same output at Kenneth for the .gov removing.

    Posted November 27, 2016 5:25pm by Yuda Leh
    Yuda Leh
    7,618 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    3 Answers

  • Daniel Petrov
    Daniel Petrov
    3,495 Points

    Same results

    Posted June 23, 2016 1:00pm by Daniel Petrov
    Daniel Petrov
    3,495 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    3 Answers

  • Mona Jalal
    Mona Jalal
    4,302 Points

    why do I get something unexpected?

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

    0 Answers

  • Mona Jalal
    Mona Jalal
    4,302 Points

    regex doesn't work

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

    1 Answer

  • Iskander Ismagilov
    Iskander Ismagilov
    13,298 Points

    Do not show email with .gov

    Posted March 9, 2016 10:24am by Iskander Ismagilov
    Iskander Ismagilov
    13,298 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    1 Answer

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    I am not getting a same output!

    Posted March 5, 2016 11:58am by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    2 Answers

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Why do I have an error?

    Posted March 5, 2016 11:46am by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    1 Answer

  • peter keves
    peter keves
    6,854 Points

    verbose/multiline string / /b world boundery

    Posted September 1, 2015 2:03pm by peter keves
    peter keves
    6,854 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    2 Answers

  • CHRISTOPHER SEAL
    CHRISTOPHER SEAL
    572 Points

    Negation Regex video: Why does the [-\w ] portion of this query (at ~7:00) bring back two characters instead of one?

    Posted August 18, 2015 6:11pm by CHRISTOPHER SEAL
    CHRISTOPHER SEAL
    572 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    2 Answers

  • Naivedya Bansal
    Naivedya Bansal
    5,483 Points

    [^gov\t]

    Posted July 22, 2015 1:41pm by Naivedya Bansal
    Naivedya Bansal
    5,483 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    1 Answer

  • juanpalacios
    juanpalacios
    7,302 Points

    Why use a set to match an exact sequence of characters?

    Posted March 28, 2015 9:43am by juanpalacios
    juanpalacios
    7,302 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    0 Answers

  • Dan A
    PLUS
    Dan A
    Courses Plus Student 4,036 Points

    regex differences between Python 2.7.8 and 3.4

    Posted December 19, 2014 11:43pm by Dan A
    Dan A
    Courses Plus Student 4,036 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    4 Answers

  • Iain Simmons
    Iain Simmons
    32,305 Points

    Matching ', Tim'

    Posted December 18, 2014 12:26am by Iain Simmons
    Iain Simmons
    32,305 Points
    • Python
    • Regular Expressions in Python
    • Introduction to Regular Expressions
    • Negation

    2 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