GoConqr has a new look! Let us know what you think.

Module 32 of 33 · Media

The Pattern attribute

Kostas Diakogiannis

The Pattern attribute

The pattern attribute

The pattern attribute is unique to input elements and especially to those of type text. Inside you can write your regular expression pattern. 

Bear in mind that the / / backslashes are not accepted and not used since there is no way to add modifiers. There is no official way to ignore case sensitivity, check for global matches or multiline results. Thus it would be really recommended not to be used heavily, except for easy patterns, and for most of the cases, it is recommended  JS should be used as an alternative for pattern.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?