I have an issue trying to get a version number from a site.
The version is shown in the webparserdump as: <td>3.2.1 / 3.2</td>.
I am assuming that the reason it won't detect the version is due to it having the / character in it. So I tried escaping that by doing this: App2RegEx=#CommonRegEx#.*>#App2#.*#App2#.*<td>(.*) \/.*</td>, which isn't working for me.
I also tried removing the / like this, which doesn't work either: App2RegEx=#CommonRegEx#.*>#App2#.*#App2#.*<td>(.*) .*</td>, so, just using the space character to end the parsing.
I only want to pick up the 3.2.1 part of the version number.
Webparserdump:My skin code:Log details for App2RegEx = To be able to run the full version.*>Electra.*Electra.*<td>(.*) /.*</td>.
I am wondering if the name used "Electra", is case sensitive when parsing? As the second instance uses a lower case initial letter.
Thanks
The version is shown in the webparserdump as: <td>3.2.1 / 3.2</td>.
I am assuming that the reason it won't detect the version is due to it having the / character in it. So I tried escaping that by doing this: App2RegEx=#CommonRegEx#.*>#App2#.*#App2#.*<td>(.*) \/.*</td>, which isn't working for me.
I also tried removing the / like this, which doesn't work either: App2RegEx=#CommonRegEx#.*>#App2#.*#App2#.*<td>(.*) .*</td>, so, just using the space character to end the parsing.
I only want to pick up the 3.2.1 part of the version number.
Webparserdump:
Code:
<tr class="grey2"> <td class="row1">Electra3 </td> <td class="pc64"><a href="https://www.cleverbridge.com/1853/?scope=checkout&cart=264522&cookie=true">upgrade</a></td> <td class="mac"><a href="https://www.cleverbridge.com/1853/?scope=checkout&cart=264522&cookie=true">upgrade</a></td> <td>any version to 3.x</td> <td><a class="linknew" href="electra-update.html">what's new?</a></td></tr><tr class="grey2"> <td class="row1"></td> <td class="pc64"><a href="https://www.tone2.com/update/Tone2_Electra_v3.2.1_PC_64Bit.zip">download</a></td> <td class="mac"><a href="https://www.tone2.com/update/Tone2_Electra_3.2_Mac_full.pkg">download</a></td> <td>3.2.1 / 3.2</td> <td><a class="linknew" href="electra-update.html">what's new?</a></td></tr>
Code:
[Variables]CommonLink=https://www.tone2.com/download.htmlCommonRegEx=To be able to run the full versionApp2=ElectraApp2Debug=App2Current=3.2.1App2RegEx=#CommonRegEx#.*>#App2#.*#App2#.*<td>(.*) /.*</td>App2Site=#CommonLink#App2Download=[m#CURRENTSECTION#]
I am wondering if the name used "Electra", is case sensitive when parsing? As the second instance uses a lower case initial letter.
Thanks
Statistics: Posted by sl23 — Yesterday, 1:45 pm — Replies 6 — Views 122