Da traduttori professionisti, imprese, pagine web e archivi di traduzione disponibili gratuitamente al pubblico.
se devi confrontare solo due caratteri, usa detect2chars invece di stringdetect. lo stesso si applica a detectchar.
if you only match two characters use detect2chars instead of stringdetect. the same applies to detectchar.
Ultimo aggiornamento 2011-10-23
Frequenza di utilizzo: 3
Qualità:
lt;detectchar char=quot;(carattere)quot; (attributi comuni) (dynamic) /gt;
lt;detectchar char=quot;(character)quot; (common attributes) (dynamic) /gt;
Ultimo aggiornamento 2011-10-23
Frequenza di utilizzo: 2
Qualità:
le espressioni regolari sono comode ma spesso c'è un modo molto più veloce per ottenere lo stesso risultato. considera di volere una corrispondenza co il carattere '#'se è il primo carattere di una riga. una soluzione basata sulle espressioni regolari avrà questo aspetto: lt;regexpr attribute=quot;macroquot; context=quot;macroquot; string=quot;^\\s*#quot; /gt; puoi ottenere lo stesso effetto molto più rapidamente usando: lt;detectchar attribute=quot;macroquot; context=quot;macroquot; char=quot;#quot; firstnonspace=quot;truequot; /gt; se vuoi una corrispondenza con l'espressione regolare'^#'puoi comunque usare detectchar con l'attributo column=quot;0quot;. l'attributo column conta le colonne in base ai caratteri, quindi un tabulatore è ancora un solo carattere.
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.
Ultimo aggiornamento 2008-03-04
Frequenza di utilizzo: 2
Qualità: