how to

string-regex-get-variable

Jan 16, 2024
softwares-and-toolsfishstring
1 Minutes
33 Words
1
git remote -v | string match -rq 'github\.com:(?<remote>[\S]+)\.git'

(?…) 其中 … 是要变量的 regex,而匹配的结果会存储到 $name 这个变量中。

Article title:string-regex-get-variable
Article author:Julyfun
Release time:Jan 16, 2024
Copyright 2025
Sitemap