Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-02-06 06:30
Flavor·Java

"
^([a-z0-9_]+\.[a-z0-9_]+)+$
"
g
Open regex in editor

Description

Note: replace the "." with "\." if you paste this on your java.

The regex will match if the package name is valid. example: my.new.hello.world.app

Supports: a-z 0-9 and underscore Supports multiple dots

Submitted by dlv_dls2