splitting files

Hello experts:

I asked this question on 3-16-2010
"I have a file that needs to be procesed in a C# application
but the records are all in one big record
soI need to split them before I process it.
I tried SPLIT and REGEX but it's not working.

File is attached.
Each individual record starts with  these characters:   {1100}

the solution was:                      

string[] lines = Regex.Split(value, @"\{1100\}");

and it worked

now i have a related question

I have another file but this one starts with these characters:YFT811
File is attached

so I tried to split like this:
 string[] lines = Regex.Split(value, @"\{YFT811\}");

but it does not work. I only get the 1st record and then it ignores
the rest.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fernando SotoRetiredCommented:
Try this, this should work

string[] lines = Regex.Split(value, @"YFT811");

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Fernando SotoRetiredCommented:
In the original solution each record started with {100} but in this case each record starts with YFT811 note no { or } so you needed to remove them from the regex pattern. You need to verify that this pattern, YFT811, can only occur at the beginning of the record and no place else it will split it incorrectly.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.