Skip to content

Conversation

@KurskiySergey
Copy link
Owner

No description provided.

Copy link

@Om1X Om1X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет первого и второго задания.

event.preventDefault();
let regExpName = /[a-z]+/ig;
let regExpPhone = /\+7\(\d{3}\)\d{3}-\d{4}/ig;
let regExpMail = /^[a-z]+[.-]?[a-z][email protected]$/ig
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

проверка почты жестко привязана к одному домену.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправил

<p>Например: <b>(.)',g</b> создает регулярное выражение <b>/(.)'/g</b> и заменяет выражение на $1", где $1 - элемент в скобках перед символом '
</p><br>
<p>Выражение <b>([^a-z])'|'$,gmi</b> - заменяет только одинарные ковычки в начале и конце строки при замене на $1" </p>
<h3>Результат</h3><br>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть и первое и второе задание. Они прописаны выше в тегах p. Просто нужно их ввести в input при загрузке страницы

Теперь почта не привязана к одному домену
@KurskiySergey
Copy link
Owner Author

Теперь почта не зависит от одного домена

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants