|
Hey guys, another irritating question:
Is there any way you can get StringTokenizer to ignore commas inside quotation marks?
I have a file with values seperated by commas, but there are also commas inside the values (which are inclosed in double qoutes)
an example of the file is this:
@property{ photo = "6.jpg", location = "Sweetbrier Lane", type = "detached house", parking = "garage", bedrooms = "4", heating = "gas", rooms = "20ft lounge, dining room, breakfast room, cloakroom, study", gardens = "lovely", price = "oiro 300000", also = "galleried landing" }
@property { location = "Bow", price = "139950", type = "link house", bedrooms = "2", heating = "oil", parking = "for 2 cars", also = "double glazing", photo = "18.jpg" }
I had the file parsing fine until the properties without line breaks, so I tried splitting them using the commas, but it was also splitting the variables apart. |