What's new
Visual Studio.Net Help Community

A community to get Microsoft Visual Studio.Net programming help.

Visual Studio.Net Help Community is a community for .Net programmers to interact with people who want to learn to program using the Microsoft Visual Studio.Net languages or who program using the Microsoft .Net languages and want to share their .Net knowledge.

Visual Studio.Net Help Community is a free programmer help site so why not join the community today? Once you are a member you get access to all our .Net programming discussions.

Regex Help NeedeD?

FaNIX

Newcomer
Joined
Feb 9, 2009
#1
Hi, I need some help with a regular expression.

I have a CSV file with a column that holds the Contact Person Name & Tellephone Number (in one Column). I need to split these into two seperate values. The Field String can be in 2 formats ex: "ContactPersonName (000) 123 4567" or "ContactPersonName 0001234567".

Can someone please help me with a Regex to split this string into 2? it should split on the first occurance of "(" or the first occurange of a number.

Thanks
 

Top Bottom