Regex
- 13 May
Regex Match any character in java
Learn about Regex - Match any character in java using different regex.
- 04 May
Validate password in java
In this post, we will see how to validate a password in java. Here are rules for password: Must have at least one numeric character Must have at least one lowercase character Must have at least one uppercase character Must have at least one special symbol among @#$% Password length should be between 8 and […]
- 04 May
Java regex for currency symbols
In this post, we will see about regex to find currency symbols in a text. You can use below regex to find currency symbols in any text. \\p{Sc} Each unicharacter belongs to certain category and you can search for it using /p. Sc is short code for current symbol, so using \p{Sc}, we are trying […]
- 08 June
Java Regex for alphanumeric characters
In this post, we will see how to create regex alphanumeric which will create only alphanumeric characters. There are times when you need to validate the user’s input. It should contain only characters from a-z, A-Zor 0-9. Here is simple regex for it. ^[a-zA-Z0-9]*$ Here is the explaination of above regex. ^ : start of […]