Regular Expressions 101

Sponsors

Library entries

0
pcre2

match extends in a class

to match extends in a class
Submitted by anonymous - 2 months ago
0
pcre2

长宽高

长宽高
Submitted by mouxan - 2 months ago
0
java

REGEX OS

Regex para extrair titulo e descrição duma OS
Submitted by anonymous - 2 months ago
0
pcre2

Password

Password includes a,A,1,!$#%
Submitted by anonymous - 2 months ago
0
pcre2

Validation

^a-zA-Z+@[a-zA-Z]{3,20}\.[a-z]{3}$
Submitted by anonymous - 2 months ago
0
pcre2

RTDM_Thread_Pool

RTDM_Thread_Pool
Submitted by anonymous - 2 months ago
0
pcre2

basic email validation

Basic email regex for quick validation
Submitted by bUxEE - 2 months ago
0
pcre2

id_name_fb

get id, name from fb link
Submitted by anonymous - 2 months ago
0
pcre2

CEP Regex Brazil

Regex para validação de CEP
Submitted by Jasmini Santos - 2 months ago
0
pcre2

get custom emoji

Hello :smiley: i love :chocolate:
Submitted by anonymous - 2 months ago
0
pcre2

Email Regex 320 chars

Email Regex 320 chars
Submitted by anonymous - 2 months ago
0
java

Key - Value extractor

Key - Value extractor
Submitted by anonymous - 2 months ago
0
java

Inner field values extraction

Inner field values extraction
Submitted by anonymous - 2 months 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 - 2 years ago