Difference between revisions of "Power Shell"

Jump to navigation Jump to search
7 bytes added ,  13:04, 19 March 2012
m
→‎Strings: Terminology error correction
(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 the Replace CmdLet, eg to replace "\" with "\\" in the $query variable...
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

Navigation menu