Title: Match Any Character
Slug: match_any_character
Summary: Match Any Character
Date: 2016-05-01 12:00
Category: Regex
Tags: Basics
Authors: Chris Albon
Based on: Regular Expressions Cookbook
In [2]:
# Load regex package
import re
In [3]:
# Create a variable containing a text string
text = 'The quick brown fox jumped over the lazy brown bear.'
In [6]:
# Find anything with a 'T' and then the next two characters
re.findall(r'T..', text)
Out[6]: