About 6,470,000 results
Open links in new tab
  1. regex - Matching strings in PowerShell - Stack Overflow

    Jul 18, 2018 · Preface: PowerShell string- comparison operators are case-insensitive by default (unlike the string operators, which use the invariant culture, the regex operators seem to use the current …

  2. powershell - how to get the value in a string using regex - Stack Overflow

    Oct 18, 2021 · shows elegant solutions that the need for a capture group () - they are the best solutions for the specific example in the question. To answer the general question as to how to extract …

  3. regex - How do I return only the matching regular expression when I ...

    To add some additional information: Select[-Object] Matches outputs custom objects with a .Matches property copied from Select-String 's [Microsoft.PowerShell.Commands.MatchInfo] -typed output …

  4. Powershell Replace String on regex match - Stack Overflow

    Regex details: ( # Match the regular expression below and capture its match into backreference number 1 \s # Match a single character that is a “whitespace character” (spaces, tabs, line breaks, etc.) * # …

  5. Pass regex options to PowerShell [regex] type - Stack Overflow

    May 25, 2017 · Also, the first example shows that Powershell allows a string for a function parameter that expects an enumeration (value). Powershell substitutes the value for the enumeration member …

  6. How to capture multiple regex matches, from a single line, into the ...

    Jun 12, 2014 · I see 2 scenarios that are handled differently: extracting all matches of a single pattern extracting single match of multiple patterns 1. extract all matches of one pattern: select-string + …

  7. Extracting specific data from a string with regex and Powershell

    Sep 13, 2011 · Extracting specific data from a string with regex and Powershell Asked 14 years, 2 months ago Modified 1 year ago Viewed 107k times

  8. Powershell Regex expression to get part of a string

    Dec 20, 2011 · Thank Brat. I am actually new to Regex and I would really appreciate it if you could help with a full example to better understand how to use regex with powershell.

  9. powershell - Regex IF condition - Stack Overflow

    Jun 8, 2017 · I'm looking for a way to filter new IP-Addresses in my host file. I created a script which updates my host file every time when I call it with data from the matrix enterprise manager. It works …

  10. How do you extract the value of a regex backreference/match in …

    How do you extract the value of a regex backreference/match in Powershell Asked 16 years, 9 months ago Modified 5 years, 6 months ago Viewed 37k times