StringBuilder - Manipulating Strings

C Sharp > StringBuilder - Manipulating Strings
18.10.2016 16:23:04


Наиболее часто встречающиеся слова в статье:

[address] [strings] [StringBuilder] [Appendf] [textToTest] [regularExpression] [Manipulating] [Strings] [•Concatenating] [Street"]


Статья:

Manipulating Strings

•Concatenating strings

StringBuilder address = new StringBuilder();

address.Append(M23");

address.Appendf, Main Street");

address.Appendf, Buffalo");

string concaten^tedAddress = address.ToStringO;

•Validating strings

var textToTest = "hellO wOrld"; var regularExpression = "\\d";

var result = Regex.lsMatch(textToTest, regularExpression, RegexOptions.None);

if (result)

{

// Text matched expression.

}