Ok, here's the latest ordeal I've gotten myself into...
The numbers I'm reading from a .html file are in this format:
##(##)
That is... 15(4).
Basically, what I need, is just the first two numbers in that example [the numbers before the (]. Ok, so that'd be easy with substr, but the problem is, the numbers aren't always the same length.
Sometimes it's 4(0). Sometimes it's 104(12).
Is there any other way to do this, so it works no matter what length the two numbers are?
The numbers I'm reading from a .html file are in this format:
##(##)
That is... 15(4).
Basically, what I need, is just the first two numbers in that example [the numbers before the (]. Ok, so that'd be easy with substr, but the problem is, the numbers aren't always the same length.
Sometimes it's 4(0). Sometimes it's 104(12).
Is there any other way to do this, so it works no matter what length the two numbers are?