Skip to content

Instantly share code, notes, and snippets.

@niikoo
Created June 20, 2019 14:05
Show Gist options
  • Save niikoo/5569789f052436d548c7776692da94a7 to your computer and use it in GitHub Desktop.
Save niikoo/5569789f052436d548c7776692da94a7 to your computer and use it in GitHub Desktop.
Useful regular expressions
# FOR VSCode #
From multi-line package references, to single line:
<PackageReference Include="(.+?)">\n\s+?<Version>(.+?)</Version>\n\s+?</PackageReference>/<PackageReference Include="(.+?)">\n\s+?<Version>(.+?)</Version>\n\s+?</PackageReference>/
<PackageReference Include="$1" Version="$2" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment