Javatpoint Logo
Javatpoint Logo

JSF <f:validateRegex> Tag

It is used to check whether the local value of a component is a match against a regular expression from the java.util.regex package or not.

Tag Attributes

Attribute Description
pattern It is used to set a regular expression pattern for the component. It is a required attribute.

JSF <f:validateRegex> Tag Example

// index.xhtml

// User.java


Output:

JSF F valiregex tag 1



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA