Last active
May 22, 2020 17:21
-
-
Save iniyanmurugavel/26606df655c96a7c8a7263c15a78d050 to your computer and use it in GitHub Desktop.
Regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static boolean isIFSCCODEValid(String ifsccode) | |
| { | |
| ///^[A-Za-z]{4}[0-9]{6,7}$/ | |
| String regExp = "^[A-Z]{4}[0][A-Z0-9]{6}$"; | |
| boolean isvalid = false; | |
| if (ifsccode.length() > 0) { | |
| isvalid = ifsccode.matches(regExp); | |
| } | |
| return isvalid; | |
| } | |
| public static boolean isAccountNoValidate(String accountno) | |
| { | |
| ///^[A-Za-z]{4}[0-9]{6,7}$/ | |
| String regExp = "^\\d{5,7}-\\d{6,8}$"; | |
| boolean isvalid = false; | |
| if (accountno.length() > 0) { | |
| isvalid = accountno.matches(regExp); | |
| } | |
| return isvalid; | |
| } | |
| pdf: "^[A-Z.]{2,4}[0-9]{4}$ | |
| amount: "(?:RS|Rs|rs|INR|Inr|inr|₹)\\.?\\s*(\\d+(?:[.,]\\d+)*)|(\\d+(?:[.,]\\d+)*)\\s*(?:RS|Rs|rs|INR|Inr|inr|₹)\\.?", | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment