Search the Community
Showing results for tags 'stringbetween'.
-
StringBetween capturing multiple lines
SOCCERMOMMY posted a topic in AutoIt General Help and Support
Hello all, First time posting; please excuse my noobness as I am self-taught over a short period with very little programming experience. However, I am trying to create a simple program that retrieves college basketball scores from the web, puts them into an array and writes to excel. Ultimately I want to create an additional variable that would be a date range so the program can cycle through many pages and retrieve years worth of information at a time. For now, I am working on a single day. Here is where I am stuck: I want to use _StringBetween to isolate team names while considering whether they are "winners" or "losers". Here is a snippet from the source code i am dealing with: <tr class="winner"> <td><a href="/teams/MIN/2020.html">Minnesota</a></td> <td class="right">118</td> <td class="right gamelink"> <a href="/boxscores/202001050CLE.html">Final</a> </td> </tr> <tr class="loser"> <td><a href="/teams/CLE/2020.html">Cleveland</a></td> <td class="right">103</td> <td class="right"> </td> </tr> </tbody> </table> My thought was to use _Stringbetween( '<tr class ="loser> <td>' & @CRLF & '<td><a href="/teams/', '</a></td>') However, i believe I am using the @CRLF out of context. Is there another way to identify page breaks within the stringbetween function? Complete script is attached for reference. Appreciate the help and patience as I try to piece it all together Muchos gracias. basketball scores x2.au3- 18 replies
-
- stringbetween
- noob
-
(and 1 more)
Tagged with:
-
Hey guys, Need copy number from source there: < div class = "big-number ng-binding" ng - bind = "test.currentAnswer" > 2501 < /div > I did my code here: Local $Input = _IETagNameGetCollection($_HB, "div") For $i2 In $Input If $i2.classname == "big-number ng-binding" Then $Number = _StringBetween($Input, ' < div class = "big-number ng-binding" ng - bind = "test.currentAnswer" > ', ' < /div >') EndIf Next But it doesnt work and now I dont know how to copy thit string maybe _IEAction($Number,"copy") actuly dont know yet Thanks for help anyone.
-
Why doesn't print the output?? #include <String.au3> Global $x = 'gdsgklj fsdl dasfgh fsfef ghterfsd kia gdfhgfgdsgklj fsdl dasfgh fsfef' $z = _StringBetween($x, 'fsdl', 'kia') ConsoleWrite($z & @CRLF) Shouldn't it be dasfgh fsfef ghterfsd instead of nothing?
- 2 replies
-
- _stringbetween
- stringbetween
-
(and 1 more)
Tagged with: