I am trying to create a regular expression in javascript that checks for the presence of three word characters, however 2 of them are optional. Therefore, I have:
/^\w\w\w/i
what I'm puzzled is to make sure that the user does not have to enter the last two letters, but if they do, they should be letters
You can use this regex:
/^\w{1,3}$/i
{1,3} (\w) 1 3 . , $ , ^ . , \w a - z ( i, ), 0 - 9 _.
{1,3}
\w
$
^
a
z
0
9
_
:
/^\w\w?\w?$/i
? .
?
$ .$ a12, . $ .
a12
Source: https://habr.com/ru/post/1744052/More articles:How to return a file and strongly typed data at the same time? - c #GridView - adding drawdowns to cells using CSS - cssDelphi: how to programmatically create a Firebird database - databaseBind "Ctrl + Alt + L" to insert some predefined string into the focused text area? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744051/querying-huge-database-table-takes-too-much-of-time-in-mysql&usg=ALkJrhj1037GJXTkq2K8nFI9WUNpSHqw2Qhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744053/php-assigning-values-to-a-variable-inside-if-statement&usg=ALkJrhjf7q-qgz40djN-vZGQwewKy3m7tQcreate a random sequence, skip any part of the sequence - mathCustom view with tip as subtask doesn't seem to load - objective-chttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744056/uibutton-also-highlighting-when-cell-is-touched&usg=ALkJrhjqA8enF_rSV3XdMnMNGyuIBqxQmgэквивалент оракула функции patindex и instr с символами wild card - oracleAll Articles