Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

0

Regular Expression
Python

r"
^((?:~?\/)|(?:(?:\\\\\?\\)?[a-zA-Z]+\:))(?:\/?(.*))?$
"
gm

Description

  • C:/path
  • \?\C:[/]path
  • /path
  • ~/path
Submitted by anonymous - 6 years ago