Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Regular Expression for a string in a line

$
0
0

Hi 

Using PowerShell 5

I have a text file:

$mytextfile = get-content c:\myfile.txt

The file contains a lot of lines with text.

I want to find all lines that have the words "catch me" in the text.

Any tips?

brgs

Bjørn



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>