Component | Translated | Untranslated | Untranslated words | Checks | Suggestions | Comments | |
---|---|---|---|---|---|---|---|
demos
|
|||||||
|
|||||||
faq
|
|||||||
|
|||||||
index MIT | |||||||
|
|||||||
regular_expressions
|
1 | ||||||
|
|||||||
tregexpr
|
24 | ||||||
|
Project website | github.com/andgineer/TRegExpr |
---|---|
Project maintainers |
![]() |
Translation license | MIT demos index regular_expressions tregexpr faq |
Languages | 1 |
Source strings | 678 |
Source words | 5,743 |
Source characters | 42,947 |
Hosted strings | 678 |
Hosted words | 5,743 |
Hosted characters | 42,947 |
And if it's inside group, it will affect only this group - specifically the part of the group that follows the modifiers. So in ``((?i)Saint)-Petersburg`` it affects only group ``((?i)Saint)`` so it will match ``saint-Petersburg`` but not ``saint-petersburg``.
И если оно находится внутри подвыражения, оно будет влиять только на это подвыражение, а именно на ту часть подвыражения, которая следует за оператором. Таким образом, в ``((?i)Saint)-Petersburg`` это влияет только на подвыражение ``((?i)Saint)``, поэтому оно будет соответствовать ``saint-Petersburg``, но не ``saint-petersburg``.
Syntax for one modifier: ``(?i)`` to turn on, and ``(?-i)`` to turn off. Many modifiers are allowed like this: ``(?msgxr-imsgxr)``.
Синтаксис для одного модификатора: ``(?i)`` чтобы включить, и ``(?-i)`` чтобы выключить. Для большого числа модификаторов используется синтаксис: ``(?msgxr-imsgxr)``.
For lookbehind ``(?<!foo)bar``, regex "foo" must be of fixed length, ie contains only operations of fixed length matches. Quantifiers are not allowed, except braces with the repeated numbers ``{n}`` or ``{n,n}``. Char-classes are allowed here, dot is allowed, ``\b`` and ``\B`` are allowed. Groups and choices are not allowed.
Для заглядывания назад ``(?<!foo)bar``, выражение "foo" должно быть фиксированной длины. Допустимы повторы только с фиксированным числом ``{n}`` или ``{n,n}``. Разрешено использование классов символов и точки. Не разрешены группы и альтернативы.
Brackets for lookahead must be at the very ending of expression, and brackets for lookbehind must be at the very beginning. So assertions between choices ``|``, or inside groups, are not supported.
Скобки для заглядываний вперед должны быть в самом начале выражения. Не поддерживаются заглядывания внутри альтернатив (``|``) или групп.
Meta-chars ``\1`` through ``\9`` are interpreted as backreferences to groups. They match the previously found group with the specified index.
Метасимволы от ``\1`` до ``\9`` интерпретируются как ссылки на группы (подвыражения в ``()``). ``\n`` соответствует ранее найденному подвыражению ``n``.