[Home] [By Thread] [By Date] [Recent Entries]
Is there any wavy to sum partial of the text? For example, I want to sum
all substring(data,7,4) from the following:
<segment>
<data>XXXYYY1000</data>
<data>XXXZZZ 100</data>
<data>SSSYYY1200</data>
</segment>
The result will be:
1000 + 100 + 1200 = 2300
Have a nice day!
Piming Kuo
|

Cart



