I have this regex capture group:
$lowerPattern='(href[\s]?=[\s]?\"[^"]*[^"]*\")'
which is returning all the matches I need just fine. However I need to replace the capture group with the results all lowercase:
$lowerPatternReplace = '$1'.ToLower()
This doesn't seem to be working. How you lowercase a capture group in powershell regex?