Skip to content

noshadchaudhry/notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Regex-Notes

Regex-Powershell

about_regular_expression Select-String, -match -cmatch -replace -split operators, switch STMT with -regex option. -casesensitive param/flag

KB chars char class range [ -~].

When put $ in Regex Exp '5.72' -replace '(.+)', '$$$1' "5.72" -replace "(.+)", "$$`$1"

Use the $Matches Hashtable automatic variable to retrieve captured text. Entire match is in key $Matches.0; Can use [0] or ..Iitem[0]. $& reps all matched.

? Then use matches.name

-replace Use ‘$1 $2 $3’. ${var} for named or even {$1}. More

https://learn.microsoft.com/en-us/dotnet/standard/base-types/substitutions-in-regular-expressions

System.Globalization; System.Text.RegularExpressions;

RegexOptions.IgnoreCase as Arg 4 to replace.

\n is u000A Have \r. Supp \p{ name }.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published