28.01.2015 Views

Introducere in ASP.NET Controale Web Pagina in ... - Profs.info.uaic.ro

Introducere in ASP.NET Controale Web Pagina in ... - Profs.info.uaic.ro

Introducere in ASP.NET Controale Web Pagina in ... - Profs.info.uaic.ro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<st<strong>ro</strong>ng>ASP</st<strong>ro</strong>ng>.<st<strong>ro</strong>ng>NET</st<strong>ro</strong>ng> 03.03.2014 27/30<br />

Memento<br />

Character Escapes Description<br />

Ord<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>ary characters Characters other than .$^{[(|)*+\ match themselves.<br />

\b Matches a backspace.<br />

\t Matches a tab.<br />

\r Matches a carriage return.<br />

\v Matches a vertical tab.<br />

\f Matches a form feed.<br />

\n Matches a newl<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>e.<br />

\ If followed by a special character (one of .$^{[(|)*+\), this character<br />

escape matches that character literal. For example, \+ matches the +<br />

character.<br />

Character Class Description<br />

. Matches any character except \n.<br />

[aeiou] Matches any s<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>gle character specified <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the set.<br />

[^aeiou] Matches any character not specified <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the set.<br />

[3-7a-dA-D] Matches any character specified <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the specified ranges (<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the<br />

example the ranges are 3–7, a–d, A–D).<br />

\w Matches any word character; that is, any alphanumeric character or the<br />

underscore (_).<br />

\W Matches any nonword character.<br />

\s Matches any whitespace character (space, tab, form feed, newl<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>e,<br />

carriagereturn, or vertical feed).<br />

\S Matches any nonwhitespace character.<br />

\d Matches any decimal character.<br />

\D Matches any nondecimal character.<br />

Us<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>g more advanced syntax, you can specify that a certa<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> character or<br />

class of characters must be present at least once, or between two and six<br />

times, and so on. The quantifiers are placed just after a character or a<br />

range of characters and allow you to specify how many times the preced<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>g<br />

character must be matched (see Table 4-19).<br />

Character Class Description<br />

. Matches any character except \n.<br />

[aeiou] Matches any s<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>gle character specified <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the set.<br />

[^aeiou] Matches any character not specified <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the set.<br />

[3-7a-dA-D] Matches any character specified <st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the specified ranges (<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng> the<br />

example the ranges are 3–7, a–d, A–D).<br />

\w Matches any word character; that is, any alphanumeric character or the<br />

underscore (_).<br />

\W Matches any nonword character.<br />

\s Matches any whitespace character (space, tab, form feed, newl<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>e,<br />

carriage return, or vertical feed).<br />

\S Matches any nonwhitespace character.<br />

\d Matches any decimal character.<br />

\D Matches any nondecimal character.<br />

Quantifier Description<br />

* Ze<strong>ro</strong> or more matches<br />

+ One or more matches<br />

Ze<strong>ro</strong> or one matches<br />

{N} N matches<br />

{N,} N or more matches<br />

{N,M} Between N and M matches (<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>clusive)<br />

Ioan Asim<st<strong>ro</strong>ng>in</st<strong>ro</strong>ng>oaei

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!