lad1337

escaping for [ and ] not working

Apr 9th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. >>> import glob
  2. >>> glob.glob('/Users/lad1337/Azureus/sabnzbd/tv/\[H\]bleach.*')
  3. []
  4. >>> glob.glob('/Users/lad1337/Azureus/sabnzbd/tv/\\[H\\]bleach.*')
  5. []
  6. >>> glob.glob('/Users/lad1337/Azureus/sabnzbd/tv/[H]bleach.*')
  7. []
  8. >>> glob.glob('/Users/lad1337/Azureus/sabnzbd/tv/[H]bleach.*')
  9. []
  10. >>> glob.glob('/Users/lad1337/Azureus/sabnzbd/tv/*bleach.*')
  11. ['/Users/lad1337/Azureus/sabnzbd/tv/[H]bleach.mkv', '/Users/lad1337/Azureus/sabnzbd/tv/[H]bleach.nfo']
Advertisement
Add Comment
Please, Sign In to add comment