xenium wrote:Posting code for a location that does not work ? It's very, very, very big ...
I post the link http://aqicn.org/city/seoul/
This is even better.
In such cases (when there are some info which either can be there or can miss), the Lookahead Assertion can make a good service. This feature is used when you can't be sure if some parts of the website are or are not there.
To use it, try the following RegExp (in my rewritten code):
See the (?)?= parts of the above RegExp. These are used to check if the immediately following string (up to the first closed parentheses) exists or doesn't. If it is, the appropriate strings are returned by the appropriate measures, otherwise these measures return empty strings.
In my tries, the above RegExp works for both, Beijing and Seoul. Does it for you, too?
balala wrote:This is even better.
In such cases (when there are some info which either can be there or can miss), the Lookahead Assertion can make a good service. This feature is used when you can't be sure if some parts of the website are or are not there.
To use it, try the following RegExp (in my rewritten code):
See the (?)?= parts of the above RegExp. These are used to check if the immediately following string (up to the first closed parentheses) exists or doesn't. If it is, the appropriate strings are returned by the appropriate measures, otherwise these measures return empty strings.
In my tries, the above RegExp works for both, Beijing and Seoul. Does it for you, too?
It works! Thank you very much
I tried several locations and it works!
I hope this website does not reserve any other issues.
I will use (?)?=, when I fill in the code with the rest of the data
The above RegExp, works along with ?:
balala wrote:My solution work ONLY if those String meters which aren't displayed (or in fact they are empty), are hidden and only those are shown, which have a value to show up. So, in the Testdynamictext.ini skin, the second String meter ([MeterDewpoint], which should have to show up the value returned by the [MeasureDewpoint] measure) should have to be hidden, while the other two, should have to remain visible. In the Testdynamictext2.ini, [MeterHumidity] should have to remain visible and [MeterFeelsLike] and [MeterDewpoint] should have to be hidden.
To achieve this, you should have to add some IfMatch options to the [MeasureFeelsLike], [MeasureDewpoint] and [MeasureHumidity] measures, in both files:
xenium wrote:The above RegExp, works along with ?:
To be honest I can't remember exactly where did we use those IfMatch options (and I'm lazy to go through the whole thread, to find it), but probably it will. Give it a try.
I'm glad if you got it working.