Skip to content

Instantly share code, notes, and snippets.

@kayasax
Created March 19, 2015 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayasax/694cdd90055bec86595c to your computer and use it in GitHub Desktop.
Save kayasax/694cdd90055bec86595c to your computer and use it in GitHub Desktop.
Extraire une chaîne de caractères via regex
#exemple pour extraire une adresse IP
$ipaddress=[regex]::match($awsoutput,"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b").Value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment