user4122308 user4122308 - 10 months ago 55
C# Question

Regex to split id's

Hi I am trying to write a regualr expression so a string can be split on the above ID's.

T follow by 9 digits (eg. T123654789)
S followed by 9 digits (eg. S123654789)
E followd by 9 digits (eg. E123654789)

I have this but does not seem to work.


This works on but not in my programme


Answer Source

How about [TSE]{1}[0-9]{9} Hope it helps.