Answers for "c# regex extract string between brackets"

C#
1

c# regex to find number between parenthesis

Regex.Match("User name (sales)", @"\(([^)]*)\)").Groups[1].Value
Posted by: Guest on May-22-2020
0

c# regex extract string between brackets

string input = "User name [sales]";
string output = input.Split('(', ')')[1];
Posted by: Guest on March-19-2021
0

c# get string in parentheses

string input = "User name (sales)";
string output = input.Split('(', ')')[1];
Posted by: Guest on July-22-2020

Code answers related to "c# regex extract string between brackets"

C# Answers by Framework

Browse Popular Code Answers by Language