V
V
v- death2015-11-08 18:18:51
HTML
v- death, 2015-11-08 18:18:51

How to set all utf8 characters in pattern?

What regular expression should be written in the input pattern so that it would accept all utf8 characters? Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
v- deathi, 2015-11-08
@vGrabko99

All unicode characters.

<input type="text" value="" name="login" class="input" placeholder="Имя"     required="required" pattern="^(?: [\x{0020}-\x{1F9FF}){1,16}$" title="не более 16 символов">

A
Andrey Fedorov, 2015-11-08
@aliencash

Wouldn't just [\x20-\xFF] work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question