ProgrammerJee - Asad Abbas(AddY)
Programming Solutions .
Monday, April 2, 2012
C#(Method Remove Unnecessory Spaces)
public
static
string
getString(
string
text)
{
try
{
return
Regex
.Replace(text,
@"\s+"
,
" "
).Trim();
}
catch
(
Exception
ae)
{
return
text;
}
}
//Note: This Method Will Remove Unnecessory Spaces From The Data
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Report Abuse
No comments:
Post a Comment