Regular Expressions 101

Sponsors

Library entries

1
python

Parse Data Fields

Parsing example
Submitted by anonymous - 7 hours ago
0
javascript

rwd

rwd
Submitted by anonymous - 18 hours ago
0
javascript

Cbre bookingid

a
Submitted by anonymous - a day ago
0
pcre

get arrays from Json

get arrays from Json
Submitted by fawaz - 2 days ago
0
pcre2

Match CamelCase

Matches PascalCase or CamelCase
Submitted by anonymous - 2 days ago
0
pcre2

nr_classe

separação de um código numérico simples
Submitted by anonymous - 3 days ago
0
python

month with year extraction

ready code
Submitted by anonymous - 3 days ago
0
pcre2

General regular expressions

General
Submitted by Stavros - 3 days ago
0
pcre2

Database_Data_Type

DatabaseDataType
Submitted by anonymous - 3 days ago

Plex Regex

Vote

0

Regular Expression
pcre

/
(?<timestamp>\w+\s+\d+,\s+\d+\s+\d+:\d+:\d+\.\d+)[^\]\n]*\]\s+(?<loglevel>\w+) - (?<full_message>(?:(?:MDE\: (?<media>[^\:]+): (?<media_message>(?:Direct Play is (?<direct_play>\w+))?(?:no direct play video profile exists for (?<media_codecs>.*))?.*))?(?:\[?(?<status_source>\w+)((\]|: ))?)?(?:Adding (?<session_number>\d) sessions\.)?(?:authenticated user \d+ as (?<user>.*))?(?:Found session GUID of (?<session_guid>[^\s]+))?(?:Using local file path instead of URL\: (?<file_path>.*))?(?:Session (?<playback_session_guid>[^\s]+) \((?<playback_session_number>[^\)]+)\) is (?<placyback_session_status>\w+))?(?:using profile (?<transcode_profile>.*))?(?:.*\/transcode\/session\/(?<transcode_session_guid>[^\/]+))?(?:It took (?<time_taken>[\d\.]+) sec to (?<action_taken>.*))?)?.*)
/
mg

Description

Loading markdown...
Submitted by anonymous - 4 years ago