PowerShellPracticeAndStyle
PowerShellPracticeAndStyle copied to clipboard
RegEx part
trafficstars
It really would be nice to have a RegEx part which helps with some traps like:
- clarify differences between
-match,-imatch,-cmatch- differences while using modifiers like
(?-i)
- differences while using modifiers like
- best practice for case sensitive patten
- when to use
-cmatch - or
-matchwith modifier like(?-i) -matchin combination with char exludes like[A-Z^a-z0-9]{1,3}
- when to use
These are just some examples which took me some time to understand when i started using RegEx patterns with powershell.
Finally just an example I did when i stated working with it:
