Jump to content

Search the Community

Showing results for tags 'sre'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 4 results

  1. 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)
  2. 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 and broader. Supports +ve and -ve SRE pattern matches. See example for better understanding. Note : The Pattern should be made such that every phase of typing is met, Example, if the user wants The second letter should be always a digit. Then he should make sure that the pattern is also satisfied when user enters the first character, as through the process of typing. Index ; #INDEX# ======================================================================================================================= ; Title .........: RestrictEdit ; Version........: 1.0 ; AutoIt Version : 3.3.8.0++ ; Language ......: English ; Author(s)......: Phoenix XL ; Librarie(s)....: WinAPI, Array and GUIEdit ; Description ...: Functions for restricting the text typed in an Edit control through SRE. ; The edit control is subclassed and the original processing is blocked when pattern isn't satisfied. ; =============================================================================================================================== ; #CURRENT# ===================================================================================================================== ;_Restrict_Edit ; =============================================================================================================================== ; #INTERNAL_USE_ONLY# =========================================================================================================== ; HideToolTip_Edit ;_NewWnd_Proc_ ;_SubClass_ ; =============================================================================================================================== ChangeLog v1.0 - First Release v2.0 - Replaced the SRE pattern parameter(2nd parameter) with function pointer parameter[A script Breaking change]. Added support for positive and negative pattern matches Download v2.0 RestrictEdit(UDF).7z Previous downloads : 161
  3. 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. Here is what I have to work with: 1. I will always know the name of the label 2. I will NOT know how many lines is between the label and the line "goto end" The SRE I have built so far is this, "(?:\:ARKANO~1)(?:\s*)(.*)(?:\s*)(.*)" ;note, the \s must also have a * because I've found without it, it won't work. Maybe the file uses two different linefeeds in one. Which will give me an array of 0 => cd ARKANO~1 1 => start.bat Now that's good, but the thing is I don't know how many lines will be inbetween, so I'd like to make an unlimited repeating set Something like this, but one that has the proper syntax and works. Here are a few tries and fails I've made: "(?:\:ARKANO~1)[?:\s.]*(?:goto)" ; also note I don't want to capture the line feeds "(?:\:ARKANO~1)((?:\s)|(.))*(?:goto)" "(?:\:ARKANO~1)((?:\s*)|(.*))(?:goto)" "(?:\:ARKANO~1)((?:\s)|(.)){1,}(?:goto)" Basically I need to know how to put special characters into a set and make it repeating. I want to not capture the \s line feeds, but capture anything else and continue until I hit the "goto" text. I've been at this for a few hours so any help is appreciated.
  4. 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.
×
×
  • Create New...