powershell substring by regex

How to Find a string inside a string -PowerShell Substring

The PowerShell Substring : Finding a string inside a string

There are many occassions where Administrators need to figure out a way to find a certain snippet of text inside a string which is called the substring. PowerShell makes finding a substring extremely easy.

How are Strings handled in PowerShell?

A string in PowerShell is a collection of characters contained in single or double quotes. Strings examples¬† are¬† say “Adam” and “Bharat”.
Let’s imagine you have a string defined in a variable and you only need to find a portion of it. As an example, … Read the rest