Sunday, 23 May 2021

REGEX Match


$a=Read-Host "Enter Value : "

if($a -match '^(sumant|ajay|kumar)' ){

    Write-Output "Matched"

}

else {

    Write-Output "Not Matched"



No comments:

Post a Comment