Horje
powershell grab regex Code Example
powershell grab regex
# Grab regex group in powershell (e.g. version from string)
$STR="v0.1.1-prerelease-2"
$VERSION=[regex]::match($STR,'(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)').Groups[0].Value
# $VERSION will print 0.1.1




Shell

Related
list envs Code Example list envs Code Example
list variables linux Code Example list variables linux Code Example
powershell get all environment variables Code Example powershell get all environment variables Code Example
test smb connection linux Code Example test smb connection linux Code Example
see disk info linux Code Example see disk info linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15