Extract number from string in MSBuild
Posted
by Ole Lynge
on Stack Overflow
See other posts from Stack Overflow
or by Ole Lynge
Published on 2010-06-05T23:39:29Z
Indexed on
2010/06/05
23:42 UTC
Read the original article
Hit count: 340
I would like to extract the number from a string in MSBuild.
How can I do that using the built in tasks or the MSBuild.Community.Tasks? (RegexMatch might do, but how?)
Example: I have the string
agent0076
and I would like to get out the number, without the leading zeros:
76
© Stack Overflow or respective owner