Regular Expressions 101

Library entries

0
pcre

jiggl

toggl track to jira
Submitted by anonymous - a day ago
0
javascript

IPv4-CIDR

Match IPv4-CIDR (JavaScript)
Submitted by fwqaaq - 3 days ago
0
python

Author cite

Get author names from shitty import
Submitted by anonymous - 9 days ago
0
pcre

strip host port

removes port number from URL
Submitted by pc - 13 days ago

Find ytdlp downloaded file path

Vote

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 - 3 months ago