Complex String Processing - well complex to me
Posted
by percent20
on Stack Overflow
See other posts from Stack Overflow
or by percent20
Published on 2010-03-29T06:36:34Z
Indexed on
2010/03/29
6:43 UTC
Read the original article
Hit count: 481
c#
|string-manipulation
I am calling a web service and all I get back is a giant blob of text. I am left to process it myself. Problem is not all lines are necessarily the same. They each have 2 or 3 sections to them and they are similar. Here are the most common examples
text1 [text2] /text3/ text1/test3 text1[text2]/text3 text1 [text2] /text /3 here/
I am not exactly sure how to approach this problem. I am not too good at doing anything advanced as far as manipulating strings.
I was thinking using a regular expression might work, but not too sure on that either. If I can get each of these 3 sections broken up it is easier from there to do the rest. its just there doesn't seem to be any uniformity to the main 3 sections that I know how to work with.
© Stack Overflow or respective owner