René's URL Explorer Experiment


Title: Check if a Python String Contains a Substring – Real Python

Open Graph Title: Check if a Python String Contains a Substring – Real Python

Description: In this video course, you'll learn the best way to check whether a Python string contains a substring. You'll also learn about idiomatic ways to inspect the substring further, match substrings with conditions using regular expressions, and search for substrings in pandas.

Open Graph Description: In this video course, you'll learn the best way to check whether a Python string contains a substring. You'll also learn about idiomatic ways to inspect the substring further, match substrings with conditions using regular expressions, and search for substrings in pandas.

Opengraph URL: https://realpython.com/courses/python-string-contains-substring/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "https://schema.org",
  "@type": "Course",
  "@id": "https://realpython.com/courses/python-string-contains-substring/",
  "url": "https://realpython.com/courses/python-string-contains-substring/",
  "name": "Check if a Python String Contains a Substring",
  "description": "In this video course, you'll learn the best way to check whether a Python string contains a substring. You'll also learn about idiomatic ways to inspect the substring further, match substrings with conditions using regular expressions, and search for substrings in pandas.",
  "availableLanguage": [
    "en"
  ],
  "educationalLevel": "Beginner",
  "educationalCredentialAwarded": {
    "@type": "EducationalOccupationalCredential",
    "credentialCategory": "Certificate",
    "name": "Real Python Certificate of Completion"
  },
  "hasCourseInstance": [
    {
      "@type": "CourseInstance",
      "courseMode": "Online",
      "courseWorkload": "PT129M55S",
      "instructor": {
        "@type": "Person",
        "name": "Martin Breuss",
        "image": "https://realpython.com/cdn-cgi/image/width=456,height=456,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/martin_breuss_python_square.efb2b07faf9f.jpg",
        "url": "https://realpython.com/team/mbreuss/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    }
  ],
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/How-to-Check-if-a-String-Contains-Another-String_Watermarked.ad5138507ec7.jpg",
    "width": 1920,
    "height": 1080
  },
  "inLanguage": "en",
  "provider": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
  },
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "syllabusSections": [
    {
      "@type": "Syllabus",
      "name": "Confirm That a Python String Contains Another String"
    },
    {
      "@type": "Syllabus",
      "name": "Find Out More About the Substring"
    },
    {
      "@type": "Syllabus",
      "name": "Find a Substring With Conditions Using Regex"
    },
    {
      "@type": "Syllabus",
      "name": "Find a Substring in a pandas DataFrame Column"
    },
    {
      "@type": "Syllabus",
      "name": "Review What You've Learned"
    }
  ],
  "offers": [
    {
      "@type": "Offer",
      "category": "Subscription"
    }
  ],
  "datePublished": "2023-04-04",
  "dateModified": "2023-04-04"
}

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/How-to-Check-if-a-String-Contains-Another-String_Watermarked.ad5138507ec7.jpg
og:imagehttps://files.realpython.com/media/How-to-Check-if-a-String-Contains-Another-String_Watermarked.ad5138507ec7.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/courses/python-string-contains-substring/
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/courses/python-string-contains-substring/
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Fcourses%2Fpython-string-contains-substring%2F
https://realpython.com/courses/python-string-contains-substring/continue/
https://realpython.com/courses/python-string-contains-substring/#team
Martin Breusshttps://realpython.com/courses/python-string-contains-substring/#team
basicshttps://realpython.com/tutorials/basics/
best-practiceshttps://realpython.com/tutorials/best-practices/
Start Now https://realpython.com/courses/python-string-contains-substring/continue/
Rate and Reviewhttps://realpython.com/feedback/survey/course/python-string-contains-substring/feedback/?from=course
substringshttps://en.wikipedia.org/wiki/Substring
text content from a filehttps://realpython.com/read-write-files-python/
received user inputhttps://realpython.com/python-input-output/
Q&A With Python Experts: Ask a Questionhttps://realpython.com/courses/python-string-contains-substring/discussion/
Course Slides (PDF)https://realpython.com/courses/python-string-contains-substring/downloads/python-string-contains-substring-slides/
Sample Code (ZIP)https://realpython.com/courses/python-string-contains-substring/downloads/python-string-contains-substring-code/
Python Data Structureshttps://realpython.com/learning-paths/basic-python-data-structures/
Start Nowhttps://realpython.com/courses/python-string-contains-substring/continue/
1. Check if a Python String Contains a Substring (Overview)02:00 https://realpython.com/videos/python-string-contains-substring-overview/
2. Confirm the Presence of a Substring04:31 https://realpython.com/videos/confirm-substring-python/
3. Generalize Your Substring Check04:10 https://realpython.com/videos/generalize-substring-check/
1. Learn More Using String Methods01:49 https://realpython.com/lessons/string-methods-python-substring/
2. Use .count() to Get the Number of Occurrences02:30 https://realpython.com/lessons/count-substring-python/
3. Use .index() to Get the Location of the Substring02:35 https://realpython.com/lessons/index-python-substring/
4. Avoid Using .find() to Check for Substrings05:20 https://realpython.com/lessons/avoid-find-python-substring/
1. Get to Know Regex for Finding Substrings01:32 https://realpython.com/lessons/substrings-regex-python-intro/
2. Match a Substring Using re.search()03:51 https://realpython.com/lessons/substring-re-search-python/
3. Explore a Match Object03:25 https://realpython.com/lessons/match-object-substring/
4. Find All Pattern Matches03:28 https://realpython.com/lessons/find-pattern-matches-python/
5. Get All Matches as Match Objects03:26 https://realpython.com/lessons/get-match-objects-python/
6. Wrap Up Finding Substrings With Regex01:51 https://realpython.com/lessons/substrings-regex-python-summary/
1. Set Up and Inspect the Data02:10 https://realpython.com/lessons/inspect-pandas-data/
2. Filter DataFrame Rows With .str.contains()02:03 https://realpython.com/lessons/filter-dataframe-str-contains/
3. Use Regular Expressions With pandas02:23 https://realpython.com/lessons/regular-expressions-pandas/
1. Check if a Python String Contains a Substring (Quiz)11:00 https://realpython.com/lessons/python-string-contains-substring-quiz/
2. Check if a Python String Contains a Substring (Summary)02:22 https://realpython.com/lessons/python-string-contains-substring-summary/
Start Nowhttps://realpython.com/videos/python-string-contains-substring-overview/
https://realpython.com/team/mbreuss/
» More about Martinhttps://realpython.com/team/mbreuss/
https://realpython.com/team/asantos/
Aldrenhttps://realpython.com/team/asantos/
https://realpython.com/team/cbailey/
Christopherhttps://realpython.com/team/cbailey/
https://realpython.com/team/kfinegan/
Katehttps://realpython.com/team/kfinegan/
https://realpython.com/team/tmoore/
Tappanhttps://realpython.com/team/tmoore/
https://realpython.com/team/gahjelle/
Geir Arnehttps://realpython.com/team/gahjelle/
https://realpython.com/team/icurrie/
Ianhttps://realpython.com/team/icurrie/
https://realpython.com/team/bweleschuk/
Brendahttps://realpython.com/team/bweleschuk/
https://realpython.com/courses/splitting-concatenating-and-joining-strings-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-string-contains-substring
Splitting, Concatenating, and Joining Python Stringshttps://realpython.com/courses/splitting-concatenating-and-joining-strings-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-string-contains-substring
https://realpython.com/courses/interactive-data-visualization-python-bokeh/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-string-contains-substring
Interactive Data Visualization With Bokeh and Pythonhttps://realpython.com/courses/interactive-data-visualization-python-bokeh/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-string-contains-substring
https://realpython.com/courses/lists-tuples-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-string-contains-substring
Lists and Tuples in Pythonhttps://realpython.com/courses/lists-tuples-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-string-contains-substring
← Browse All Courseshttps://realpython.com/search?kind=course
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.