Regular Expressions 101

Sponsors

Library entries

1
java

Match all numbers

Match all numbers from a string.
Submitted by VS - a year ago
1
java

Sınıfları Tek Tek seçme

za
Submitted by anonymous - a year ago
1
java

css attribute validation

css attribute validation
Submitted by arnab - a year ago
1
java

标点

匹配大部分标点
Submitted by anonymous - a year ago
1
java

sfdgvsdgdfg

dgfdgdf
Submitted by anonymous - a year ago
1
java

11

11
Submitted by 11 - 8 months ago
1
java

Rick Roll

Matches chorus of Never Going to Give You Up
Submitted by Stephen Battista - 5 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 - 10 months ago