Hi Bill,
What about constructing the regular expression dynamically, inserting the
desired number of spaces on the fly? This might be not the best solution if
RegularExpressions have some syntax to populate a number character but I
beleive I haven't seen one.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Bill Mittenzwey" <bm*********@hotmail.com> wrote in message
news:Ou**************@TK2MSFTNGP11.phx.gbl...
Is there a way to do a Regex replace on a string to stuff some variable
amount of spaces into a location of a string?
I need an expression which would take an unknown length string and move
the last char to position 15.
EX:
123456
transforms to
12345 6
I have a start, but not sure how to do the middle part:
match = "(.*)(.$)"
replace = "$0--spaces go here--$1"