Regular Expressions 101

Sponsors

Library entries

0
java

Other segment

Other segments
Submitted by Lufram - 3 days ago
0
java

Take segments to string

Take segments to string
Submitted by Lufram - 3 days ago
0
python

Special GPS input

Used for TrigDroid
Submitted by anonymous - 4 days ago
0
java

Kyivstar phone number

Kyivstar phone number
Submitted by milka_vlad - 7 days ago
0
java

tas-branch-validation

tas-branch-validation
Submitted by doron-hafner - 11 days ago
0
java

ip address

ip address regex
Submitted by shyam - 14 days ago
0
golang

domain

ss
Submitted by sssssss - 15 days ago
0
python

Aurora SMS Log Parser

For personal use in my project.
Submitted by sn3kdev - 15 days ago
0
python

hyperlinks

collect information from web links
Submitted by anonymous - 16 days ago
0
python

Find ytdlp downloaded file path

For internal use
Submitted by ezalos - 17 days ago
0
python

XML file extract from logs

For internal use
Submitted by ezalos - 17 days ago
0
golang

Semver split

"1.2.3" Group 1: 1 Group 2: 2 Group 3: 3
Submitted by Icaruk - 17 days 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 - 3 months ago