Regex

Samlade uttryck för att minnas dem helt enkelt 🙂

URLs
För att testa regex uttryck https://regex101.com

Exempel:
 	abc… 	Letters
	123… 	Digits
	\d 	Any Digit
	\D 	Any Non-digit character
	. 	Any Character
	\. 	Period
	[abc] 	Only a, b, or c
	[^abc] 	Not a, b, nor c
	[a-z] 	Characters a to z
	[0-9] 	Numbers 0 to 9
	\w 	Any Alphanumeric character
	\W 	Any Non-alphanumeric character
	{m} 	m Repetitions
	{m,n} 	m to n Repetitions
	* 	Zero or more repetitions
	+ 	One or more repetitions
	? 	Optional character
	\s 	Any Whitespace
	\S 	Any Non-whitespace character
	^…$ 	Starts and ends
	(…) 	Capture Group
	(a(bc)) 	Capture Sub-group
	(.*) 	Capture all
	(abc|def) 	Matches abc or def
	

Powershell 7 – pwsh.exe – a collection of things…

Installera:

Länk till alla varianter och releases på GitHub

Windows terminal kan också vara bra att nyttja 🙂 MsStore

URL: 7.1.0
https://github.com/PowerShell/PowerShell/releases/tag/v7.1.0

Msi x64 direkt länk:
https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x64.msi


URL: 7.03 Release
https://github.com/PowerShell/PowerShell/releases/tag/v7.0.3
https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell-7.0.3-win-x64.zip

URL: 7.02 Release

https://github.com/PowerShell/PowerShell/releases/tag/v7.0.2

Snabb MSI installation singel line

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
Linux singel line:
wget https://aka.ms/install-powershell.sh; sudo bash install-powershell.sh; rm install-powershell.sh

PowerShell 7-modulens kompatibilitet

Beskriver Windows modulers kompatibilitet med PS7.

Remoting Cross plattform SSH etc
https://www.thomasmaurer.ch/2019/04/setup-powershell-ssh-remoting-in-powershell-6/