🤑 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
  • 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
    MOD
    Iain Simmons
    Treehouse Moderator 32,305 Points

    Matching ', Tim'

    Posted December 18, 2014 12:26am by Iain Simmons
    Iain Simmons
    Treehouse Moderator 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.

    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.