Looking for powershell Answers? Try Ask4KnowledgeBase
Looking for powershell Keywords? Try Ask4Keywords

PowerShellExpresiones regulares


Sintaxis

  • 'text' -match 'RegExPattern'
  • 'text' -replace 'RegExPattern', 'newvalue'
  • [regex] :: Match ("text", "pattern") #Single match
  • [regex] :: Coincidencias ("texto", "patrón") #Múltiples coincidencias
  • [regex] :: Reemplazar ("texto", "patrón", "nuevo valor")
  • [regex] :: Replace ("text", "pattern", {param ($ m)}) #MatchEvaluator
  • [regex] :: Escape ("input") #Escape caracteres especiales

Expresiones regulares Ejemplos relacionados