Regular Expressions
Posted: Fri Nov 18, 2005 9:55 am
Hi All,
Wondering if someone can help me with some code for a reg. expression, I have a file that is not very pretty and I am trying to get each new vehicle onto a new line, I have managed to do this to a point but there are a couple that are escpaing, the line looks like this
Line1 - AU A3 5DR SPORTBACK 1.9 TDi EU4,AUDI,08/03/2005,28/10/2005,AUA319
Line2 - 5HDTM 1
What I would like to say is if Line2 does not have a (,) in it, move it onto the line above, so that it looks like -:
AU A3 5DR SPORTBACK 1.9 TDi EU4,AUDI,08/03/2005,28/10/2005,AUA3195HDTM 1
Or it would if this window I am typing in was a little bigger.
Thanks for any help recieved! Phil
Wondering if someone can help me with some code for a reg. expression, I have a file that is not very pretty and I am trying to get each new vehicle onto a new line, I have managed to do this to a point but there are a couple that are escpaing, the line looks like this
Line1 - AU A3 5DR SPORTBACK 1.9 TDi EU4,AUDI,08/03/2005,28/10/2005,AUA319
Line2 - 5HDTM 1
What I would like to say is if Line2 does not have a (,) in it, move it onto the line above, so that it looks like -:
AU A3 5DR SPORTBACK 1.9 TDi EU4,AUDI,08/03/2005,28/10/2005,AUA3195HDTM 1
Or it would if this window I am typing in was a little bigger.
Thanks for any help recieved! Phil