Regular Expressions 101

Community Patterns

1

emoji-test.txt

Python
emoji-test.txt
Submitted by anonymous - a month ago
1

html <Title>

Java 8
htnle
Submitted by erichologist - 2 months ago

Find ytdlp downloaded file path

0

Regular Expression
Python

r"
(?:(?# Pattern before filename )(?:\[download\] )?Destination: (?# )|(?# )\[download\] (?# )|(?# )Adding metadata to \"(?# ))(?# )((?# CAPTURE GROUP: filename pattern )\/?[^\/\\\n]+(?:\/|\\)(?# Capture first folder )(?:(?# )[^\n\.]*(?# Stop capturing if point, to check )(?!\.f\d{1,4}\.(?:webm|mov|mp4))(?# Checking this is not a partial download )\.(?# Can now capture the point ))+(?# )(?:webm|mov|mp4)(?# ))(?# )\n?
"
gm

Description

Loading markdown...
Submitted by ezalos - 7 months ago
(Last modified 7 months ago)