Regular Expressions 101

Sponsors

Library entries

0
pcre2

Car2DB format

My REGEX
Submitted by Author - a year ago
0
golang

Log Data Parsing

parse log data
Submitted by anonymous - a year ago
0
pcre2

validate tlf

Validate tlf
Submitted by anonymous - a year ago
0
golang

Detecting CJK Chars in Golang!

Detecting CJK Chars in Golang!
Submitted by anonymous - a year ago
0
pcre2

Capture api endpoint name

matches someApiName in someApiNameApi
Submitted by anonymous - a year ago
0
pcre2

HMR siprec MIME

siprec
Submitted by anonymous - a year ago
0
pcre2

blogtag for dave

regex for urls
Submitted by Yaron - a year ago
0
pcre2

nvm help pattern

work in progress! :)
Submitted by anonymous - a year ago
0
pcre2

Match any character and number

Submitted by igorgcustodio - a year ago
0
pcre2

Chtoby rukami sorok pyat failov ne huiarit

Normalno
Submitted by anonymous - a year ago
0
pcre2

Matching Markdown Custom Quote

Matching Markdown Custom Quote
Submitted by TriDiamond - a year ago
0
pcre2

test

asdad
Submitted by anonymous - a year ago
0
pcre2

Id of google Drive File

extract Id for id files
Submitted by macorreag - a year ago
0
pcre2

Wordpress Image SRC

Find image source from wordpress content
Submitted by anonymous - a year ago

PHP Class Capture Groups from symbol string for Class, Namespace, Operation (Mutator or Accessor), Target and Method Names

Vote

1

Regular Expression
pcre2

/
(?<class>^(?<fully_qualified_class_name>(?<deliniator>(?<!\\)\\(?!\\)(?=(?P>fully_qualified_class_name))){0,1}[A-z_][\w]*)(?=::(?P>method)|$)|^(?<namespace>^(?P>fully_qualified_class_name)*)(?P>deliniator)(?P>fully_qualified_class_name)(?=::(?P>method)|$))(?<scope_resolution_operator>::(?=(?P>method)(?!$)))?(?<method>(?<=::)(?<operation>(?<mutator>[sS]et(?=[A-Z0-1_]|$))|(?<accessor>[gG]et(?=[A-Z0-1_]|$))|(?<condition>[iI]s(?=[A-Z0-1_]|$)|[hH]as(?=[A-Z0-1_]|$)))?_?(?<target>(?<=\w)\w*)|[A-z_]\w*)?$
/
gm

Description

Loading markdown...
Submitted by Jacob Canote - a year ago