Python Forum
Version of glob for that Supports Windows Wildcards?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Version of glob for that Supports Windows Wildcards?
#2
I don't have a solution for you that I think is elegant, but you can can do something silly like
pattern.replace("[", "[[").replace("]", "]]")
to do the escaping you need.
Reply


Messages In This Thread
RE: Version of glob for that Supports Windows Wildcards? - by micseydel - Jun-14-2019, 11:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 763 Oct-04-2023, 10:01 AM
Last Post: snippsat
  Wildcards in a String? pajd 19 2,694 Oct-12-2022, 09:14 AM
Last Post: rob101
  |SOLVED] Glob JPGs, read EXIF, update file timestamp? Winfried 5 2,519 Oct-21-2021, 03:29 AM
Last Post: buran
  [SOLVED] Input parameter: Single file or glob? Winfried 0 1,599 Sep-10-2021, 11:54 AM
Last Post: Winfried
  q re glob.iglob iterator and close jimr 2 2,262 Aug-23-2021, 10:14 PM
Last Post: perfringo
  Paho-mqtt fully supports MQTT 5.0 protocol? nitinkothari17 0 1,564 Jan-12-2021, 11:14 AM
Last Post: nitinkothari17
  Last Python (64bit) version for Windows 7? pstein 3 22,256 Nov-15-2020, 02:09 PM
Last Post: jefsummers
  Listing files with glob. MathCommander 9 4,987 Oct-26-2020, 02:04 AM
Last Post: MathCommander
  Windows 10 Python Version DevSrc8 6 4,891 Aug-07-2020, 12:36 PM
Last Post: DevSrc8
  [split] What version of python works on Windows Vista? tit 1 7,121 Oct-11-2018, 10:08 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020