Hello,

I need to read an expression from text file in this format

(x1,y1),(x2,y2)

when x1,y1,x2,y2 are integers,

I've already tried many different ways and didn't find solution.

Thank you for your help:)

Printable View

- 11-23-2011, 10:20 AMmariaKHow to parse an expression with given format
Hello,

I need to read an expression from text file in this format

(x1,y1),(x2,y2)

when x1,y1,x2,y2 are integers,

I've already tried many different ways and didn't find solution.

Thank you for your help:) - 11-23-2011, 10:47 AMJosAHRe: How to parse an expression with given format
Use a regular expression and search for "\\d+" to find the integers in the String.

kind regards,

Jos - 11-23-2011, 12:17 PMmariaKRe: How to parse an expression with given format
Thanks , you helped me a lot