"ReplaceWith" & – but only part of it

listed in answer

"ReplaceWith" & – but only part of it
0 votes, 0.00 avg. rating (0% score)

ANSWER:

Yes, use parentheses to “capture” part of the string that matches your expression. I’m not up to speed on Python’s implementation, but it should give you some kind of array called match[] whose elements correspond to the captures.

by David Gorsline from http://stackoverflow.com/questions/10233117