I think in Visual Studio, you can mark expressions with curly braces {txtSomeNum.Text}
. Then in the replacement, you can refer to it with \1
. So the replacement line would be something like Int32.Parse(\1)
.
Update: via @Timothy003
VS 11 does away with the {} \1 syntax and uses () $1