Search the Community
Showing results for tags 'sre'.
-
Come up with a different regular expression, maybe improved? #include <Array.au3> #include <Inet.au3> Local $aSRE = StringRegExp(_INetGetSource('http://www.telize.com/geoip'), '"\w+":"?([^",]+)', 3) _ArrayDisplay($aSRE)
-
RESTRICT EDIT UDF Restrict the text that can be entered in an editbox through a String Regular Expression. The UDF works be subclassing the control. >Here is a similar UDF based on Windows Message. Functions The UDF is pretty simple and could be modified with ease. User can set their SRE pattern to block the text entered in the editbox Tooltips can be used in case of an error. The title of the Tooltip is Error_2 where the number(2) signifies the pattern that caused the error. The script is made to use function pointer variables rather than direct patterns, to make it more flexible an
-
Hi Programmers, I have worked with SRE before and I know it's a really powerful tool to get extract exactly what you want from text. However it's a little tricky to use sometimes with a lot of syntax to memorize. I'm having a problem and I know it should work, but I just can't get it to work. Here is my text: :ALONEI~2 cd ALONEI~2 AITD2CRK.COM goto end :ALONEI~3 cd ALONEI~3 AITD3.EXE goto end :ARKANO~1 cd ARKANO~1 start.bat goto end :Ascend cd Ascend ASCEND.EXE goto end What I would like to do is get the text between a label like "Alonel~3" and the line "goto end" below it. Her
- 11 replies
-
- String Regular Expression
- SRE
- (and 4 more)
-
Could someone make a pattern for this. Been testing out various patterns for hours. String <div class="profName"><a href="ShowRatings.jsp?tid=1632499">Abaquita, Edwin</a></div> My Pattern (?<=\QShowRatings.jsp?tid=\E).*(?=\Q</a></div>\E) I just need the name (Abaquita, Edwin). The problem with my pattern is the link number (1632499) changes with every name and there are multiple names on a page, also the number of digits varies with each name. Thank you in advance.
- 1 reply
-
- SRE
- StringRegExp
-
(and 2 more)
Tagged with: