Regular Expressions 101

Sponsors

Library entries

0
python

Obtiene Subject 3 Ouutlook

'^Subject:.\s((=?^.[?=$]).*)'
Submitted by Julio Bacan - 14 days ago
0
java

Titulo da expressao

\w
Submitted by anonymous - 15 days ago
0
java

Apigee example SQL injection detection regex

Source
Submitted by anonymous - 20 days ago
1
python

triple / double bottles

triple / double bottles
Submitted by anonymous - 21 days ago
0
java

test

test
Submitted by anonymous - 21 days ago
0
python

在特定位置替换字符

1
Submitted by anonymous - 23 days ago
0
python

Photos18 Url Matcher

A regex to match photos18 urls
Submitted by anonymous - a month ago
0
python

vishnu

log regex
Submitted by vishnu kendre - a month ago

Analyze movie and series episode torrent name

Vote

0

Regular Expression
java

"
^ # get the title of this movie or series (?<title> [-\w'\"]+ # match separator to later replace into correct title (?<separator> [\s.] ) # note this must be lazy for the engine to work ltr not rtl (?: [-\w'\"]+\2 )*? )(?: # if this is an episode, lets match the season # number one way or another. if not, the year of the movie # make sure this is not just a number in the title followed by our separator. # like, iron man 3 2013 or my.fictional.24.series (?! \d+ \2 ) # now try to match the season number (?: s (?: \2? )? )? (?<season> \d\d? ) (?: e|x (?:\2? )? ) (?<episode> \d\d? ) # needed to validate the last token is a dot, or whatever. (?: e\d\d? (?:-e?\d\d?)? | x\d\d? )? | # this is likely a movie, match the year [(\[]?(?<year>\d{4})[)\]]? ) | # optional release name (?:(?<release> PROPER | REPACK | LIMITED | EXTENDED | INTERNAL | NEW(?:\ SOURCE)? | NUKED | UNRATED | .*?\ EDITION | HC)) | # optional resolution group (?<resolution> \d{3,4}\ ?p) | # optional quality group (?<quality> HDTV | WEB[-.]?DL | HDDVD | DVDRip | DVD | B[DR]Rip | Blu[-.\ ]?Ray | HDRip | WEBRIP ) | # optional codec group (?<codec> XviD | X26[45] | h26[45] | hevc ) | # optional audio group (?<audio> AC3 | AAC | DTS | DD5\.1) | # optional team group with hyphen prefix (?:-(?<team>.*?))? # optional extension group with . prefix (?:\.(?<extension>mkv|avi|mp4|srt))? $
"
gmix

Description

Loading markdown...
Submitted by Hot Priest - 2 months ago