Skip to content

Instantly share code, notes, and snippets.

@hayderimran7
Created April 2, 2023 18:35
Show Gist options
  • Save hayderimran7/5320f97a5416724d7c5bd0fd3e0f83b9 to your computer and use it in GitHub Desktop.
Save hayderimran7/5320f97a5416724d7c5bd0fd3e0f83b9 to your computer and use it in GitHub Desktop.
OCI regex

get ocid

/(ocid.*([a-z 0-9]{60})+)/

get part after ocid

/[a-z 0-9]{60}\.(.*)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment