I have the following log entry that I am processing in PowerShell I\'m trying to extract all the activity names and durations using the -match
operator but I am onl
You can do this with the Select-String cmdlet in V2 but you need to specify the -AllMatches switch e.g.:
$formattedMessage | Select-String 'regexpattern' -AllMatches
Keep in mind that with the -match
operator the primary thing you are doing is looking for "a" match i.e. is the regex pattern matched or not.