Skip to content

Instantly share code, notes, and snippets.

@garethj-msft
Created March 8, 2025 05:53
Show Gist options
  • Save garethj-msft/0a94ba06c0e1c0ff4863309168828c19 to your computer and use it in GitHub Desktop.
Save garethj-msft/0a94ba06c0e1c0ff4863309168828c19 to your computer and use it in GitHub Desktop.
Helpul regexes
// Find the first annotations that target the entitycontainer by name
<Schema .*Namespace="(.*?)"(?:.*\n)+?\s*<EntityContainer Name="(.*?)"(?:.*\n)+?.*<Annotations Target="\1\.\2\/
// Find truly deprecated items (not hidden)
<(Entity|Complex|Enum)(?!.*ags:IsHidden="true").+\r\n.*Ann.*\r\n.*Collec.*\r\n.*Record.*\r\n.*Deprec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment