Skip to content

Regular expressions using re Python module

Notifications You must be signed in to change notification settings

muhammadanas123/Python-Regex

 
 

Repository files navigation

Python-Regex

Regular expressions using re Python module

.

Any Character Except New Line

\d

Digit (0-9)

\D

Not a Digit (0-9)

\w

Word Character (a-z, A-Z, 0-9, _)

\W

Not a Word Character

\s

Whitespace (space, tab, newline)

\S

Not Whitespace (space, tab, newline)

\b

Word Boundary

\B

Not a Word Boundary

^

Beginning of a String

$

End of a String

[]

Matches Characters in brackets

[^ ]

Matches Characters NOT in brackets

|

Either Or

( )

Group

Quantifiers:

*

0 or More

+

1 or More

?

0 or One

{3}

Exact Number

{3,4}

Range of Numbers (Minimum, Maximum)

About

Regular expressions using re Python module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 58.1%
  • Jupyter Notebook 35.7%
  • Python 6.2%