martin_d_bell
Member
- Joined
- Oct 8, 2004
- Messages
- 17
Hi Everyone,
I have a string in the form of
Blah1, Blah2, Blah3, Blah4, Blah5
I need to strip the Blahs and store them as separate string variables such as
strVar1 = Blah1
strVar2 = Blah2
strVar3 = Blah3
etc
etc
The string will be of different lengths and could contain 3 Blahs or 8 Blahs so the string length is never constant.
I get the feeling that a regular expression is the solution but havent got a clue how to write one of these to do the job. If anyone could help it would be very much appreciated. Thanks in advance.
Martin
I have a string in the form of
Blah1, Blah2, Blah3, Blah4, Blah5
I need to strip the Blahs and store them as separate string variables such as
strVar1 = Blah1
strVar2 = Blah2
strVar3 = Blah3
etc
etc
The string will be of different lengths and could contain 3 Blahs or 8 Blahs so the string length is never constant.
I get the feeling that a regular expression is the solution but havent got a clue how to write one of these to do the job. If anyone could help it would be very much appreciated. Thanks in advance.
Martin