-
1
- #1
Being new to powershell this was doing me in.
I was using:
$strResult = $strResult -Replace($strX, $strY)
this was working most of the time, however if $strX started with a 'funny' char ^ or # (i think) this replace function was no longer working, i presume it was thinking $strX was a regexp or something like that?
I have found that:
$strResult = $strResult.Replace($strX, $strY)
gives me the result i want
I Hear, I Forget
I See, I Remember
I Do, I Understand
Ronald McDonald
I was using:
$strResult = $strResult -Replace($strX, $strY)
this was working most of the time, however if $strX started with a 'funny' char ^ or # (i think) this replace function was no longer working, i presume it was thinking $strX was a regexp or something like that?
I have found that:
$strResult = $strResult.Replace($strX, $strY)
gives me the result i want
I Hear, I Forget
I See, I Remember
I Do, I Understand
Ronald McDonald