Home IFSC Code Format
Post
Cancel

IFSC Code Format

Edit Validate rules

Format

  • Ex: IDIB000A208
1
2
3
4
5
6
7
8
9
10
11
12
13
// regex to check IFSC Code
String regex= ("^[A-Z]{4}0[A-Z0-9]{6}$");

// Compile the ReGex
  java.util.regex.Pattern p=java.util.regex.Pattern.compile(regex);

// If the string is empty, return false
if (theValue == null || theValue.trim().equals("")) return false;
theProperty.addMessage("Please enter valid IFSC");

// Pattern class contains matches() method to match the given string and regular expression
java.util.regex.Matcher m = p.matcher(theValue);
return m.matches();

Reference

Click Here - More details from pega academy for Edit Validate rules

This post is licensed under CC BY 4.0 by the author.

Phone Number Format

Pan Format

Comments powered by Disqus.