2,187
edits
(Update table formatting) |
m (→Strings: Terminology error correction) |
||
Line 240: | Line 240: | ||
<br>'''Replace''' <br> | <br>'''Replace''' <br> | ||
Basic find and replace can be done with | Basic find and replace can be done with a string's Replace method, eg to replace "\" with "\\" in the $query variable... | ||
<source lang="powershell"> $query = $query.Replace("\", "\\") </source> | <source lang="powershell"> $query = $query.Replace("\", "\\") </source> | ||
For proper regular expressions support, use the following syntax | For proper regular expressions support, use the following syntax |