Question : Split strings with RegEx

Hi,

I've some strings I need to split.
As they're all are very different I'm looking for the best way to do so.
For sure I've to correct a lot manual but when I can split a lot of them programatically I'll be glad :-)
Here are some samples how they looks and what result is needed e.g.:
1,2, 3: String
should become:
1,2, 3:
String

1-3,4-9 (String1) (String2)
should become:
1-3,4-9
(String1)
(String2)

(1)/3 String1
should become:
(1)/3
String1

1,3 String1(String2)
should become:
1,3
String1
(String2)

2005: 3-7 String1
should become (nice to have):
2005:
3-7

Br (1) String1
should become (nice to have):
Br
(1)
String1

So some more explaining:
In the first part of he string for normal only a digit, (, ), /, : or , .
In less cases they start with some chars (last sample) but that is not such important.

Than after the digit, (, ), /, : or , are ever fellow a)a space and a char bedind - or b)a space and a ( while variant a) ever ends with a char or if there's a command behind with a (.
Anything that starts with ( will be end with ).

So at all I don't know if it's possible with RegEx and C# splits but I think is better to ask the experts than doing tons of loops ans split() ....

Thanks Andre

Answer : Split strings with RegEx

Yes, your end-users need to have VIEW SERVER STATE privileges for them to get complete information from sys.sysprocesses view else they would be able to view only requests created from their login only.
Random Solutions  
  •  what would be the regex for the following pattern in perl?
  •  Outlook stationery, multiple BCC recipients, spam filters
  •  VBA syntax to include a specific directory and a selected file
  •  How can I  stop MSVIDEO.DLL, BAD IMAGE from showing up all the time?
  •  Weird OUTLOOK PST corruption
  •  anyone can help me about how to complete the following 2 SQLstatements. any idea on this will be highly appreciated!
  •  Global Catalog Not Working In Branch Office Locations After Introduction of One Server 2008 And Upgrading Domain
  •  How to identify the sql statements executed against a database in db2 installed on Linux
  •  Help Need to resole this error SqlClient.SqlConnection' cannot be converted to 'System.Data.OleDb.OleDbConnection'.
  •  Access 2010: is there a way to have Access 2010 and it's runtime running on the same PC?
  •  
    programming4us programming4us