update help elma
This commit is contained in:
@ -1,20 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Создание масок строковых полей с помощью регулярных выражений</title>
|
||||
<title>Create input masks for Strings using regular expressions</title>
|
||||
<meta name="generator" content="Help+Manual" />
|
||||
<meta name="keywords" content="" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Регулярные выражения — это шаблоны, используемые для сопоставления последовательностей символов в строках. Шаблон состоит из односимвольных или многосимвольных литералов,..." />
|
||||
<meta name="description" content="Regular expressions are patterns used to match character combinations in strings. A pattern may include single- or multi-character literals, operators, and constructs. " />
|
||||
<meta name="picture" content="" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Cправка по Low-code платформе ELMA365" />
|
||||
<meta property="og:url" content="https://elma365.com/ru/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<meta property="og:site_name" content="ELMA365" />
|
||||
<meta property="og:title" content="Full documentation for BRIX365 platform. Low-code developer guide. User guide. Admin guide. Developer guide." />
|
||||
<meta property="og:url" content="https://brix365.com/en/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<link rel="icon" href="favicon.png" type="image/png" />
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
||||
@ -24,7 +23,6 @@
|
||||
<link rel="stylesheet" href="./article.css" />
|
||||
<link rel="stylesheet" href="./glossary.css" />
|
||||
<link rel="stylesheet" href="./theme.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="helpman_settings.js"></script>
|
||||
<script type="text/javascript" src="helpman_topicinit.js"></script>
|
||||
@ -36,16 +34,16 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M6ETBEC1R9"></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', 'G-M6ETBEC1R9');</script>
|
||||
|
||||
<script>!function(e,t,c,n,r,a,m){e.ym=e.ym||function(){(e.ym.a=e.ym.a||[]).push(arguments)},e.ym.l=1*new Date;for(var s=0;s<document.scripts.length;s++)if(document.scripts[s].src===n)return;a=t.createElement(c),m=t.getElementsByTagName(c)[0],a.async=1,a.src=n,m.parentNode.insertBefore(a,m)}(window,document,"script","https://mc.yandex.ru/metrika/tag.js"),ym(83179930,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0})</script><noscript><div><img alt=""src=https://mc.yandex.ru/watch/83179930 style=position:absolute;left:-9999px></div></noscript>
|
||||
|
||||
<header class="header elma-365">
|
||||
<div class="container">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo.svg" alt="header logo">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-en.svg" alt="header logo">
|
||||
</a>
|
||||
<!-- <div class="hero__search-form" id="search-panel">
|
||||
<form class="search-form" onsubmit="ym(83179930,'reachGoal','poisk')">
|
||||
<form class="search-form" onsubmit="ym(83180416,'reachGoal','poisk')">
|
||||
<label class="search-form__label">
|
||||
<span id="reset-search" class="search__icon"></span>
|
||||
<input class="search-form__input" type="text">
|
||||
@ -65,7 +63,7 @@
|
||||
</div>
|
||||
<div class="header__navi">
|
||||
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a class="project-link" href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li><li><a class="project-link" href="https://elma365.com/ru/help/business_solutions/-elma365-store.html">Бизнес-решения</a></li></ul></span></li><li><a href="https://api.elma365.com/ru/"target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/"target="_blank">SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/" target="_blank">Академия</a></li><li><a href="https://elma365.com/ru/" target="_blank">Сайт ELMA365</a></li></ul>
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a class="project-link" href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://brix365.com/en/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li><li><a class="project-link" href="https://brix365.com/en/help/business_solutions/-elma365-store.html">Business Solutions</a></li></ul></span></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li><li><a href="https://tssdk.brix365.com/" target="_blank">SDK</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
@ -80,8 +78,8 @@
|
||||
|
||||
<aside class="sidebar" id="sidebar">
|
||||
<div class="sidebar__header">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo-light.svg">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-light-en.svg">
|
||||
</a>
|
||||
<span class="sidebar__close elma-365-close" id="close"></span>
|
||||
</div>
|
||||
@ -94,15 +92,15 @@
|
||||
<div class="article-inner">
|
||||
<div class="content">
|
||||
<header class="article__header">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<span id="subcategory" class="search-res__item-category search-res__item-category_subcategory subcategory article__badge"></span>
|
||||
|
||||
<div class="topic__breadcrumbs">
|
||||
<p>Low-code дизайнер > <a href="interface_settings.html">Создание интерфейсов</a> / Создание масок строковых полей с помощью регулярных выражений</p>
|
||||
<p>Low-code designer > <a href="interface_settings.html">Set up interfaces</a> / Create input masks for Strings using regular expressions</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Создание масок строковых полей с помощью регулярных выражений</span></h1>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Create input masks for Strings using regular expressions</span></h1>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
@ -111,66 +109,56 @@
|
||||
<a href="#h1-article" class="scroll-top"></a>
|
||||
</div>
|
||||
<!-- Placeholder for topic body. -->
|
||||
<p class="p_Normal"><span style="color: #212121; background-color: #ffffff;">Регулярные выражения </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">—</span><span style="color: #212121; background-color: #ffffff;"> это шаблоны, используемые для сопоставления последовательностей символов в строках. </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">Шаблон состоит из односимвольных или многосимвольных литералов, операторов или конструкций. </span></p>
|
||||
<p class="p_Normal"><span style="font-size: 15px; color: #394149; background-color: #ffffff;">Используя регулярные выражения для полей типа </span><span style="font-size: 15px; font-weight: bold; color: #394149; background-color: #ffffff;">Строка</span><span style="font-size: 15px; color: #394149; background-color: #ffffff;"> можно настроить маску. С помощью нее будет проверяться корректность информации, </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">введённой </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">пользователем. </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">Обратите </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">внимание, в</span> маске доступны только выражения без флагов. </p>
|
||||
<p class="p_Normal"><span style="font-size: 15px; color: #394149; background-color: #ffffff;">Можно также указать текст сообщения, которое будет отображаться при вводе данных в формате, не удовлетворяющем требованиям регулярного выражения. </span></p>
|
||||
<p class="p_Normal"><img alt="regular-expr1" width="641" height="321" style="margin:0;width:641px;height:321px;border:none" src="regular-expr1.png"/></p>
|
||||
<p class="p_Normal">Подробнее о синтаксисе регулярных выражений можно прочитать в документации <a href="https://developer.mozilla.org/ru/docs/Web/JavaScript/Guide/Regular_Expressions" target="_blank" class="weblink">MDN Web Docs</a>.</p>
|
||||
<p class="p_Normal"> </p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">В каждом примере, приведенном ниже, содержится:</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">‘^’</span><span style="font-size: 15px; color: #394149;"> </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">—</span><span style="font-size: 15px; color: #394149;"> начало строки,</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">‘$’</span><span style="font-size: 15px; color: #394149;"> </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">—</span><span style="font-size: 15px; color: #394149;"> конец строки,</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">‘?’ в ‘()?’</span><span style="font-size: 15px; color: #394149;"> означает, что все, что находится в (), может повторяться 0 или 1 раз. Если не добавить это условие, то в случае, если поле не обязательно и не заполнено, будет возникать сообщение об ошибке.</span></p>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Примеры регулярных выражений</span></h2>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка серии паспорта</span></h3>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">^([0-9]{2}\s{1}[0-9]{2})?$</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">Разберем выражение:</span></p>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter; background-color: #ffffff;">Regular expressions are patterns used to match character combinations in strings. A pattern may include single- or multi-character literals, operators, and constructs. </span></p>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter; background-color: #ffffff;">You can use regular expressions in </span><span style="font-family: Inter; font-weight: bold; background-color: #ffffff;">String</span><span style="font-family: Inter; background-color: #ffffff;"> type fields to create input masks. They are used to validate data that a user enters against the defined rules. Note that masks can only include expressions without flags.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter; background-color: #ffffff;">You can also enter a message that will be displayed in case the data entered by the user doesn’t match the regular expression pattern.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><img alt="field-masks-1" width="582" height="285" style="margin:0;width:582px;height:285px;border:none" src="field-masks-1.png"/></p>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter;">Learn more about the syntax of regular expressions on the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions" target="_blank" class="weblink">MDN Web Docs</a> website. </span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-family: Inter;">All examples below include the following special characters:</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;"> ‘^’ </span><span style="font-size: 15px; font-family: Inter; background-color: #ffffff;">matches the beginning of input</span><span style="font-size: 15px; font-family: Inter;">,</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">‘$’ </span><span style="font-size: 15px; font-family: Inter; background-color: #ffffff;">matches the end of input</span><span style="font-size: 15px; font-family: Inter;">,</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">‘?’ in ‘()?’</span><span style="font-size: 15px; font-family: Inter;"> matches the preceding item 0 or 1 times. If this character is not added after the parentheses, and the field is left empty, the system will display an error message even if the field is not marked as required.</span></p>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Examples of regular expression patterns</span></h2>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Validate a US passport number</span></h3>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">^(([0-9]{8})|([0-9]{9}))?$</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">Let’s break it down:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" style="line-height: 1.50; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">[0-9]{2} </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">—</span><span style="font-size: 15px; color: #394149;"> позволяет ввести две любые цифры.</span></li><li value="2" style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">\s{1} </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">—</span><span style="font-size: 15px; color: #394149;"> позволяет ввести один пробел.</span></li><li value="3" style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; color: #394149;">[0-9]{2} </span><span style="font-size: 15px; color: #394149; background-color: #ffffff;">—</span><span style="font-size: 15px; color: #394149;"> позволяет ввести две любые цифры.</span></li></ol>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">Пример:</span><span style="font-size: 15px; color: #394149;"> 12 34</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка номера паспорта</span></h3>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">^([0-9]{6})?$</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">Разберем выражение:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" style="line-height: 1.50; margin-top: 0; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; color: #394149;">[0-9]{6} — позволяет ввести 6 любых цифр.</span></li></ol>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">Пример:</span><span style="font-size: 15px; color: #394149;"> 123456</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка кода подразделения</span></h3>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">^([0-9]{3}[-]{1}[0-9]{3})?$</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">Разберем выражение:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" style="line-height: 1.50; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">[0-9]{3} — позволяет ввести 3 любые цифры.</span></li><li value="2" style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">[-]{1} — позволяет ввести один символ ‘-’.</span></li><li value="3" style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; color: #394149;">[0-9]{3} — позволяет ввести 3 любые цифры.</span></li></ol>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">Пример:</span><span style="font-size: 15px; color: #394149;"> 123-456</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка ИНН</span></h3>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">^(([0-9]{12})|([0-9]{10}))?$</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">Разберем выражение:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" style="line-height: 1.50; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">[0-9]{12} — позволяет ввести 12 любых цифр.</span></li><li value="2" style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">[0-9]{10} — позволяет ввести 10 любых цифр.</span></li><li value="3" style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; color: #394149;">(a|b) — позволяет ввести либо левую часть выражения, либо правую.</span></li></ol>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">Пример:</span></p>
|
||||
<li value="1" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0-9]{8} allows entering eight digits.</span></li><li value="2" style="line-height: 1.20; margin-top: 8px; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0-9]{9} allows entering nine digits.</span></li><li value="3" style="line-height: 1.20; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">(a|b) allows entering either the left or the right part of the expression.</span></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Examples:</span></p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li style="line-height: 1.50; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">123456789012</span></li><li style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; color: #394149;">1234567890</span></li></ul>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка ОГРН</span></h3>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">^([0-9]{13})?$ — позволяет ввести 13 любых цифр.</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка КПП</span></h3>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">^([0-9]{9})?$ — позволяет ввести 9 любых цифр.</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка номера частного транспортного средства</span></h3>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; color: #394149;">^([АВЕКМНОРСТУХ]{1}[0-9]{3}[АВЕКМНОРСТУХ]{2}[0-9]{2,3})?$</span></p>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">Пример:</span></p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li style="line-height: 1.50; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">А012ВУ18</span></li><li style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; color: #394149;">А012ВЕ159</span></li></ul>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка корректности названия файла</span></h3>
|
||||
<p style="background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">^([^\\/:*?"<>|]+[.]{1}[^\\/:*?"<>|]+)?$</span></p>
|
||||
<p style="background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: 'Times New Roman',Times,Georgia,serif; color: #394149;">Разберём выражение:</span></p>
|
||||
<li style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">12345678</span></li><li style="line-height: 1.20; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">123456789</span></li></ul>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Validate a US Social Security number</span></h3>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">^([0-9]{3}[-]{1}[0-9]{2}[-]{1}[0-9]{4})?$</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">Let’s break it down:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" class="p_Normal">[^\\/:*?"<>|] — позволяет ввести любые символы, кроме тех, которые написаны после «^». То есть, символы, входящие в диапазон, указывают на отрицание.</li><li value="2" class="p_Normal">[a]+ — позволяет ввести символы в скобках один или несколько раз. Вы можете задать любую комбинацию символов, кроме указанных в скобках.</li><li value="3" class="p_Normal">[.]{1} — позволяет ввести одну точку.</li></ol>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">Пример:</span><span style="font-size: 15px; color: #394149;"> Документ1.docx</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Проверка корректности пути до файла</span></h3>
|
||||
<p style="background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">^(([A-Z]:\\){1}[^\/:*?"<>|]+)?$</span></p>
|
||||
<p class="p_Normal">Разберём выражение:</p>
|
||||
<li value="1" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0-9]{3} allows entering three digits.</span></li><li value="2" style="line-height: 1.20; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">[0-9]{2} allows entering two digits.</span></li><li value="3" style="line-height: 1.20; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">[0-9]{4} allows entering four digits.</span></li><li value="4" style="line-height: 1.20; margin-top: 8px; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[-]{1} allows entering one ‘-’ character.</span></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-family: Inter; font-weight: bold;">Example:</span><span style="font-family: Inter;"> 123-45-6789</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Validate a US Employer Identification Number</span></h3>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">^([0-9]{2}[-]{1}[0-9]{7})?$</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">Let’s break it down:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" class="p_Normal">([A-Z]:\\){1} — позволяет ввести одну заглавную латинскую букву и последовательность символов «:\» (первый символ «\» сообщает системе, что следующая обратная косая черта не является специальным символом).</li><li value="2" class="p_Normal"> + — позволяет ввести символы в скобках один или несколько раз. Поскольку в начале выражения указан символ «^», вы можете задать любую комбинацию символов, кроме указанных в скобках.</li></ol>
|
||||
<p class="p_Normal" style="line-height: 1.50; background: #ffffff;"><span style="font-size: 15px; font-weight: bold; color: #394149;">Пример:</span></p>
|
||||
<li value="1" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0-9]{2} allows entering two digits.</span></li><li value="2" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[-]{1} allows entering one ‘-’ character.</span></li><li value="3" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0-9]{7} allows entering seven digits.</span></li></ol>
|
||||
<p style="line-height: 1.20; margin: 7px 0 7px 0;"><span style="font-family: Inter; font-weight: bold;">Example: </span><span style="font-family: Inter;">12-3456789</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Validate a Legal Entity Identifier</span></h3>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">^([0-9]{4}[0]{2}[A-Z0-9]{12}[0-9]{2})?$</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">Let’s break it down:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0-9]{4} allows entering four digits.</span></li><li value="2" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0]{2} allows entering the ‘0’ character twice.</span></li><li value="3" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[A-Z0-9]{12} allows entering twelve alphanumeric characters (uppercase Latin letters or digits).</span></li><li value="4" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">[0-9]{2} allows entering two digits.</span></li></ol>
|
||||
<p style="line-height: 1.20; margin: 7px 0 7px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Example:</span><span style="font-size: 15px; font-family: Inter;"> 123400AB123456789612</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Validate a file name</span></h3>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">^([^\\/:*?"<>|]+[.]{1}[^\\/:*?"<>|]+)?$</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">Let’s break it down:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">[^\\/:*?"<>|] allows entering any characters except for the ones after ‘^’ (in other words, the characters included in the range are negated).</span></li><li value="2" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">[a]+ allows entering the characters in the brackets one or more times. In this case, it allows you to enter any combination of characters except for the ones specified in the brackets.</span></li><li value="3" style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">[.]{1} allows entering one period.</span></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Example:</span><span style="font-size: 15px; font-family: Inter;"> Document1.docx</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Validate a file path</span></h3>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">^(([A-Z]:\\){1}[^\/:*?"<>|]+)?$</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter;">Let’s break it down:</span></p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" style="line-height: 1.20; background: #ffffff; margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><span style="font-size: 15px; font-family: Inter;">([A-Z]:\\){1} allows you to enter one uppercase Latin letter and the ‘:\’ sequence of characters (the first ‘\’ tells the system that the next backslash is not a special character).</span></li><li value="2" style="line-height: 1.20; background: #ffffff; margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><span style="font-size: 15px; font-family: Inter;">The </span><span style="font-family: Inter;">‘</span><span style="font-size: 15px; font-family: Inter;">+</span><span style="font-family: Inter;">’</span><span style="font-size: 15px; font-family: Inter;"> character allows entering the characters in the brackets one or more times. In this case, it allows you to enter any combination of characters except for the ones specified in the brackets due to the ‘^’ character at the beginning of the range.</span></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 7px 0 16px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Examples:</span></p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li style="line-height: 1.50; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; color: #394149;">C:\Windows\System32\calc.exe;</span></li><li style="line-height: 1.50; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; color: #394149;">Z:\test.txt.</span></li></ul>
|
||||
<li style="line-height: 1.20; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">C:\Windows\System32\calc.exe</span></li><li style="line-height: 1.20; margin-top: 8px; margin-right: 0; margin-bottom: 8px;"><span style="font-size: 15px; font-family: Inter;">Z:\test.txt</span></li></ul>
|
||||
|
||||
<div class="bottom-nav">
|
||||
|
||||
@ -187,7 +175,7 @@
|
||||
|
||||
</div>
|
||||
<!-- добавляет на страницу строку блок Была ли статья полезной? -->
|
||||
<div class="feedback-wrap"><div class="feedback" id="feedback"><span><b>Была ли статья полезной?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx">Спасибо за ваш отзыв!</div><div id="feedback-success-popup"><div class="wrap"><button type="button" class="feedback-popup-close">×</button><svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_212_2187)"><path d="M22 0.6875C10.2294 0.6875 0.6875 10.2294 0.6875 22C0.6875 33.7706 10.2294 43.3125 22 43.3125C33.7706 43.3125 43.3125 33.7706 43.3125 22C43.3125 10.2294 33.7706 0.6875 22 0.6875ZM22 40.5625C11.8023 40.5625 3.4375 32.3078 3.4375 22C3.4375 11.8024 11.6922 3.4375 22 3.4375C32.1977 3.4375 40.5625 11.6922 40.5625 22C40.5625 32.1976 32.3078 40.5625 22 40.5625ZM34.1713 16.933L18.6613 32.3186C18.257 32.7197 17.604 32.7171 17.203 32.3128L9.82283 24.873C9.42176 24.4686 9.42434 23.8157 9.82867 23.4146L10.5609 22.6884C10.9652 22.2873 11.6181 22.2899 12.0192 22.6942L17.9468 28.6697L31.9926 14.7366C32.3969 14.3356 33.0498 14.3382 33.4509 14.7425L34.1772 15.4747C34.5783 15.879 34.5757 16.532 34.1713 16.933Z" fill="#27AE60"></path></g><defs><clipPath id="clip0_212_2187"><rect width="44" height="44" fill="white"></rect></clipPath></defs></svg><p>Ваш отзыв успешно отправлен!</p><span>Спасибо за обратную связь.</span></div></div><div class="feedback__popup" id="feedback__popup_why"><button type="button" class="feedback-popup-close">×</button><div class="feedback__popup-header">Уточните, почему:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Рекомендации не помогли</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Текст трудно понять</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Нет ответа на мой вопрос</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Содержание статьи не соответствует заголовку</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Другая причина</label></div><div class="feedback__popup" id="feedback__popup-other"><button type="button" class="feedback-popup-close">×</button> <div class="feedback__popup-header">Расскажите, что вам не понравилось в статье:</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Отправить"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg"/><span class="feedback-form__btn-group_yes-btn">Да</span></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg"/><span class="feedback-form__btn-group_no-btn">Нет</span></label></div><select name="category"><option disabled>Выберите вариант</option><option value="bad_recommendation" selected>Рекомендации не помогли</option><option value="difficult_text">Текст трудно понять</option><option value="no_answer">Нет ответа на мой вопрос</option><option value="bad_header">Содержание статьи не соответствует заголовку</option><option value="other_reason">Другая причина</option></select><input type="submit"></form></div></div>
|
||||
<div class="feedback" id="feedback"><div class="feedback-help"><span><b>Was this helpful?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx" style="display: none;">Thanks for your feedback!</div><div class="feedback__popup" id="feedback__popup_why" style="display: none;"><div class="feedback__popup-header">Please specify why:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Recommendations did not help me</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Article is hard to understand</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Didn`t answer my question</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Content does not match the topic</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Other</label></div><div class="feedback__popup" id="feedback__popup-other" style="display: none;"><div class="feedback__popup-header">How we can improve it?</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Submit"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg" class="small-img" alt="like"><spanclass="feedback-form__btn-group_yes-btn">Yes</spanclass="feedback-form__btn-group_yes-btn"></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg" class="small-img" alt="dislike"><spanclass="feedback-form__btn-group_no-btn">No</spanclass="feedback-form__btn-group_no-btn"></label></div><select name="category"><option disabled="">Please specify why</option><option value="bad_recommendation" selected="">Recommendations did not help me</option><option value="difficult_text">Article is hard to understand</option><option value="no_answer">Didn`t answer my question</option><option value="bad_header">Content does not match the topic</option><option value="other_reason">Other</option></select><input type="submit"></form></div><div class="found_typo"><p style="margin: 0px; margin-top: 16px !important;"><span><b>Found a typo?</b></span> Select it and press <i>Ctrl+Enter</i> to send us feedback</p></div></div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
@ -195,7 +183,7 @@
|
||||
<input type="checkbox" />
|
||||
<div class="article__arrow"></div>
|
||||
<div class="table-of-contents elma365-right" id="toc2Content">
|
||||
<h3 class="h3-toc">В этой статье</h3>
|
||||
<h3 class="h3-toc">In this topic</h3>
|
||||
<nav id="toc2"></nav>
|
||||
</div>
|
||||
</aside>
|
||||
@ -206,63 +194,30 @@
|
||||
<div class="footer-container">
|
||||
<div class="footer-mobile">
|
||||
|
||||
<ul class="footer-mobile__list"><li><a href="https://api.elma365.com/ru/" target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/" target="_blank">TS SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/elma365" target="_blank">Академия</a></li></ul><ul class="footer-mobile__list"><li><a href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li></ul>
|
||||
<ul class="footer-mobile__list"><li><a href="https://brix365.com/en/" target="_blank">BRIX</a></li><li><a href="https://tssdk.brix365.com/en/latest/" target="_blank">SDK</a></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li></ul><ul class="footer-mobile__list"><li><a href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Отправить фидбэк</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Задать вопрос</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Отправить"></div></form><div class="hidden fade-in question-success-xs">Ваш фидбэк отправлен.</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<div class="footer-top">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="footer-line">
|
||||
|
||||
<div class="footer-line-copy">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item"><a href="https://elma365.com/ru/" target="_blank" class="footer-link" style="color: #0D4A75;"><img src="browse.svg" alt="browse icon" class="footer-img">elma365.com</a></li><li class="footer-item"><a href="https://www.youtube.com/user/ELMABPM" target="_blank" class="footer-link"><img src="yt.svg" alt="youtube icon" class="footer-img"></a></li><li class="footer-item"><a href="https://vk.com/elma_bpm" target="_blank" class="footer-link"><img src="vk.svg" alt="vk icon" class="footer-img"></a></li><li class="footer-item"><a href="https://t.me/elmaday" target="_blank" class="footer-link"><img src="tg.svg" alt="telegram icon" class="footer-img"></a></li><li class="footer-item"><a href="https://dzen.ru/elma" target="_blank" class="footer-link"><img src="dzen.svg" alt="dzen icon" class="footer-img"></a></li>
|
||||
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Send feedback</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Ask a question</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Send"></div></form><div class="hidden fade-in question-success-xs">Sent</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<span class="footer-copy">© 2025 BRIX</span>
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="#" class="arrow-top" style="display: block;"></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="arrow-top"></a>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
<!-- <script type="text/javascript" src="jquery1.min.js"></script>-->
|
||||
<iframe name="hmnavigation" style="display:none!important"></iframe>
|
||||
<!--<script src="./jquery-ui.js"></script> -->
|
||||
<script src="./jquery-ui.min.js"></script>
|
||||
<script src="./jquery-ui.js"></script>
|
||||
<!--script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script-->
|
||||
<script src="./jquery.tocify.min.js"></script>
|
||||
<script src="./TypoReporter.min.js"></script>
|
||||
|
Reference in New Issue
Block a user