Regular Expressions 101

Sponsors

Library entries

0
dotnet

IP Table Parse IPID

Match 1 is the IPID
Submitted by Tres Little - 13 days ago
0
golang

S3 Path with ending .json

S3 Path with ending .json
Submitted by Sowmith - 17 days ago
0
dotnet

title and page

find title and page in text
Submitted by anonymous - 25 days ago
0
dotnet

7zip file type regex

header of output from > 7z i
Submitted by ninmonkey - a month ago
0
dotnet

custom email

custom email
Submitted by anonymous - a month ago
1
golang

1

11
Submitted by anonymous - a month ago
0
dotnet

Any WhiteSpace Character

Any WhiteSpace Character
Submitted by anonymous - a month ago
0
dotnet

sdfsfd

sdfdsf
Submitted by anonymous - a month ago
0
dotnet

Username regex

Matches alphanumeric, @, . , -
Submitted by Ethan Pedersen - 2 months ago

Regex to verify a java method

Vote

0

Regular Expression
java

"
^\s*((public|private|protected)? *(static)? *(void|int|String|boolean|float|double) +[a-zA-Z_](\w)* *[\(] *(((int|String|boolean|float|double) +[a-zA-Z_](\w)*))* *( *, *int +[a-zA-Z_](\w)* *| *, *String +[a-zA-Z_](\w)* *| *, *boolean +[a-zA-Z_](\w)* *| *, *float +[a-zA-Z_](\w)* *| *, *double +[a-zA-Z_](\w)* *|\))+\s*[{]\s*|( *public +static +void +main *\( *String *(\[\])? * args *(\[\])? *\)\s*[{]\s*))
"
gm

Description

Loading markdown...
Submitted by Marco Galindo - a year ago