make small addition with TC
Posted: Thu Apr 11, 2013 9:14 am
Hello everybody,
Apologize for bad english.
Is it possible with TextCrawler to make small addition?
Here is an example which i would do:
<a href="#fr-SG21-X" class="AT" title="Gn 1.1">1</a>
<a href="#fr-SG21-X" class="AT" title="Gn 1.2">2</a>
<a href="#fr-SG21-X" class="AT" title="Gn 1.3">3</a>
For the first line, X = C (a constant number i choose) + 1
For the 2nd line, X = C (a constant number i choose) + 2 , etc.
Suppose C is 50, the result will be:
<a href="#fr-SG21-51" class="AT" title="Gn 1.1">1</a>
<a href="#fr-SG21-52" class="AT" title="Gn 1.2">2</a>, etc.
How can i do to make TC understanding this?
I known that the following code is wrong:
find:
<a href="#fr-SG21-50+(\d{1,3})" class="AT" title="Gn 1.(\d{1,3})">(\d{1,3})</a>
replace with:
<a href="#fr-SG21-Addition(50+$3)" class="AT" title="Gn 1.$3">$3</a>
Many thxs.
Apologize for bad english.
Is it possible with TextCrawler to make small addition?
Here is an example which i would do:
<a href="#fr-SG21-X" class="AT" title="Gn 1.1">1</a>
<a href="#fr-SG21-X" class="AT" title="Gn 1.2">2</a>
<a href="#fr-SG21-X" class="AT" title="Gn 1.3">3</a>
For the first line, X = C (a constant number i choose) + 1
For the 2nd line, X = C (a constant number i choose) + 2 , etc.
Suppose C is 50, the result will be:
<a href="#fr-SG21-51" class="AT" title="Gn 1.1">1</a>
<a href="#fr-SG21-52" class="AT" title="Gn 1.2">2</a>, etc.
How can i do to make TC understanding this?
I known that the following code is wrong:
find:
<a href="#fr-SG21-50+(\d{1,3})" class="AT" title="Gn 1.(\d{1,3})">(\d{1,3})</a>
replace with:
<a href="#fr-SG21-Addition(50+$3)" class="AT" title="Gn 1.$3">$3</a>
Many thxs.