Sie suchten nach: firstnonspace (Englisch - Russisch)

Menschliche Beiträge

Von professionellen Übersetzern, Unternehmen, Websites und kostenlos verfügbaren Übersetzungsdatenbanken.

Übersetzung hinzufügen

Englisch

Russisch

Info

Englisch

firstnonspace: match only, if the string is the first non-whitespace in the line. default: false.

Russisch

firstnonspace: Соответствие, только если строка начинается не с пробела. По умолчанию: false.

Letzte Aktualisierung: 2011-10-23
Nutzungshäufigkeit: 1
Qualität:

Englisch

regular expressions are easy to use but often there is another much faster way to achieve the same result. consider you only want to match the character '# 'if it is the first character in the line. a regular expression based solution would look like this: lt; regexpr attribute=quot; macroquot; context=quot; macroquot; string=quot; ^\\s*#quot; / gt; you can achieve the same much faster in using: lt; detectchar attribute=quot; macroquot; context=quot; macroquot; char=quot; #quot; firstnonspace=quot; truequot; / gt; if you want to match the regular expression '^#' you can still use detectchar with the attribute column=quot; 0quot;. the attribute column counts character based, so a tabulator still is only one character.

Russisch

Регулярные выражения несложны в использовании, но очень часто можно найти более быстрый способ. Допустим, вы ищете символ '#', это первый символ строки. Решение с регулярным выражением будет выглядеть примерно так: lt; regexpr attribute=quot; macroquot; context=quot; macroquot; string=quot; ^\\ s * # quot; / gt;. Этой же цели можно достичь значительно быстрее: lt; detectchar attribute=quot; macroquot; context=quot; macroquot; char=quot; # quot; firstnonspace=quot; truequot; / gt;. Для поиска регулярного выражения '^ #' можно применить detectchar с атрибутом column=quot; 0quot;. Отсчет для атрибута column идет посимвольно, поэтому знак табуляции для него - всего один символ.

Letzte Aktualisierung: 2011-10-23
Nutzungshäufigkeit: 1
Qualität:

Eine bessere Übersetzung mit
10,388,471,977 menschlichen Beiträgen

Benutzer bitten jetzt um Hilfe:



Wir verwenden Cookies zur Verbesserung Ihrer Erfahrung. Wenn Sie den Besuch dieser Website fortsetzen, erklären Sie sich mit der Verwendung von Cookies einverstanden. Erfahren Sie mehr. OK