fork download
  1. import re
  2. regex = r"\\[^\\]*\.([^\\]*)\\[^\\]*$"
  3. x = "Y:\\Path\\sub path\\name_of_folder.microphones.flac24\\trackname01.flac"
  4. match = re.search(regex, x)
  5. if match:
  6. print(match.group(1))
Success #stdin #stdout 0.02s 9476KB
stdin
Standard input is empty
stdout
flac24