on-internet
← Community

Count number of strings within a string?

Stack Overflow ·

How would you go about counting the number of strings within a string using Powershell? For example: $a = "blah test <= goes here / blah test <= goes here / blah blah" I want to count how many times <= goes here / appears in the above.

Comments

Sign in or sign up to comment and upvote.

No comments yet.