Skip to content

Instantly share code, notes, and snippets.

@pedroinfo
Created June 6, 2025 19:40
Show Gist options
  • Select an option

  • Save pedroinfo/7ff6ffad8b21b7f9d56ca77e93661e5c to your computer and use it in GitHub Desktop.

Select an option

Save pedroinfo/7ff6ffad8b21b7f9d56ca77e93661e5c to your computer and use it in GitHub Desktop.
ParentesesRegex.cs
static string ExtrairValorEntreParenteses(string input)
{
var match = Regex.Match(input, @"\(([^)]*)\)");
return match.Success ? match.Groups[1].Value : null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment