Regular Expressions 101

Sponsors

Library entries

1
java

IP Address

(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by anonymous - 8 days ago
0
python

Code Block Splitting

Useful for getting codeblock from a text
Submitted by anonymous - 12 days ago
0
golang

nginx access regex loki

nginx access log regex
Submitted by Lethisa Putri - 13 days ago
0
python

singleTime ztm

ss
Submitted by pochwix2 - 14 days ago
0
python

Contas regex

A simple regex for contas bancárias
Submitted by anonymous - 15 days ago
0
python

Out of

Out of
Submitted by anonymous - 15 days ago
1
python

telephone_founder

with obfuscation
Submitted by anonymous - 20 days ago
0
python

TRye bracktres

gfhtrgh
Submitted by anonymous - 23 days ago
0
java

Cron Syntax

This checks the syntax for CRON
Submitted by Till Hummel - 23 days ago
0
java

FullName_regex

2135
Submitted by anonymous - a month 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