Skip to content

Instantly share code, notes, and snippets.

@aclave1
Created September 21, 2018 18:21
Show Gist options
  • Save aclave1/15c39cc8acb708b89a4db304cff29fbb to your computer and use it in GitHub Desktop.
Save aclave1/15c39cc8acb708b89a4db304cff29fbb to your computer and use it in GitHub Desktop.
Umbraco CMS csproj wildcard regex
# Basic wildcards
```
<Content Include="App_Plugins\**" />
<Content Include="config\**" />
<Content Include="Content\**" />
<Content Include="css\**" />
<Content Include="js\**" />
<Content Include="Views\**" />
<Content Include="fonts\**" />
<Content Include="scripts\**" />
<Content Include="uSync\**" />
<Content Include="Umbraco\**" />
<Content Include="Umbraco_Client\**" />
```
regex to delete everything covered by these wildcards
`<Content Include="(App_Plugins|config|Content|css|js|Views|fonts|scripts|uSync|Umbraco|Umbraco_Client)\\[^*].*\/>$`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment