I find this java regex, but don't understand what does it match?
Pattern.compile("\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*(\\.\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*)*");
What javaJavaIdentifierStart
matches?
\\p{javaJavaIdentifierStart}
means a character acceptable to be the first character of any valid java identifier.
\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*\\.\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*
means anyIdentifier.anyIdentifier
- two java identifiers, separated by dot (namespace name and class name, class name and static member name, object name and member name or etc.)
Full (corrected) regex means (maybe qualified) java identifier - simple "name" or a chain of "names", separated by dots. It is not neccessary for it to be a fully qualified name though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With