Skip to content

Python library for converting glob formatted search to regex

License

Notifications You must be signed in to change notification settings

Salamek/glob2regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glob2regex

Converts glob search format to regex format

Python package

Install

pip install glob2regex

Example of usage

from glob2regex import glob2regex

glob_search = '/home/*/ST-*/q[01-10]*.pdf'

regex = glob2regex(glob_search)

print(regex)