Jump to content

Search the Community

Showing results for tags 'regular expression'.

  • Search By Tags

    • regular expression ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Found 22 results

  1. Hi everyone, I have this string: "main_lot 0x111” & @CRLF & “main_version 0xABC” & @CRLF & “main_number 0xDEAD123” & @CRLF & “main_version 0x333" And I'm trying to extract one specific hexadecimal number, actually main_version from this string by using StringReg...
  2. This is a program that I made to help my self learn better regular expressions. There are a lot of other programs/website with the similar functions. The main advantage of this program is that you don't have to click a button after every changes. The program detected changes and react on it...
  3. Hi all, is there a regular expression pattern that can be used to remove part of a string based on the position of the substring, that is, by specifying the start and end characters of the block to remove? thus obtaining a new string without the "piece" indicated. for example: Global $...
  4. Hi, I have a string like this : Global $Msga = "urrent directory is /send. (Submission of file with log number 29381077284 is confirmed)"; I want to extract the number 29381077284 from the string. I did StringSplit to split based on "(" and then use space to reach there, But it's...
  5. Hello if I have a string like in the example below, is there a regular expression that can surround any "string" (and only strings) within quotes?. The whole input string is a "constructor" to populate an array so even if an element contains more words (a phrase) it should be considered as a s...
  6. Inspired by PHP's preg_split. Split string by a regular expression. Also supports the same flags as the PHP equivalent. v1.0.1 Example: #include "StringRegExpSplit.au3" StringRegExpSplit('splitCamelCaseWords', '(?<=\w)(?=[A-Z])') ; ['split', 'Camel', 'Case', 'Words']
  7. Hello, I'm trying to match the second to last line of this: foo C:\ foobar foobar x C:\temp\dir Last line with chars Here's my code: $test = 'foo' & @CRLF $test &= 'C:\' & @CRLF $test &= 'foobar' & @CRLF $test &= 'hello' & @CRLF $test &= 'C:\temp\dir' & @CRLF $test &= 'Last line with c...
  8. I'm looking for a regex genius, cus I'm stumped when it comes to assertions. So what I have now, is this regular expression: ([^|=]+)=([^|]+) It takes a string (user input) of keys=values separated by pipes (ie: "param=value|param=value") and splits them into an array. Example: $vPar...
  9. regex and iso escape sequences Hi, I would like to extract all ISO escape squences embedded in a string and separate them from the rest of the string, still keeping the information about their position, so that, for exemple, a string like this one (or even more complex): (the string could...
  10. I am trying to identify the window based on the window title and text. The title will be the "erwin DM - filename" It is working till date, but some operating systems our application is displaying window as "erwin DM - [filename]" I tried "erwin DM - *filename*" But this regular ex...
  11. Hi all, it's been a while since I last used regular expressions and I find myself out of time to experiment with this particular issue, so I throw myself upon your mercy and expertise. I am looking to create a function that will say whether or not a supplied string is a valid UUID or not....
  12. I am looking to writing an automation script for converting the following SQL procedure code into VBCode as shown below Example ALTER PROCEDURE [dbo].[firstprocedure] (        @var1 varchar(10),        @var2 varchar(7),        @var3 float )    CONVERSION Public Function first...
  13. Hi all. I'm revisiting poorly commented code of mine from over a year ago. In one line I search a string for a regular expression and cannot figure out exactly what the code is searching for. The expression is: .+(?>\R) I've tried to piece it together from the StringRegExp() page. My edu...
  14. mikell ;Global $sCharAllowed = ";!#$%&'()+-,.0123456789=@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{ }~" Local $uStringIN = "頹-衙-浳-浤-搰-橱-煪๏๐๑๒๖D๚๛ẀẁẂẴẵẶặẸẹẺẻỈỉỊAịỌÆ¢™®¯ÌÍÎÏÐÑרÙòóôŘřŢţŷOŸǾǿ₪₫€℅l№™Ωe⅛∑-•v8∫˜≠==□ּׂאַאָאּבּVגּדּהּוּזטּיּךּכשּתּוֹבֿכֿפֿAﭏﭽﮊﮋﮏﮐﮑﮒﮓﮔﺅﺆﺇTﺈﺉﺊﺋﺛﺜﺝﺮﺯﺰﺱﻐRﻑﻒﻓﻔﻕﻟﻠ...
  15. I wrote a program to convert single and double quotes to curly single and double quotes. The program uses regular expression search and replaces to swap the straight quotes to their curly counterparts and to ignore any HTML tags, too. #include <ButtonConstants.au3> #include <EditConstants.au3> #incl...
  16. Hi, I don't understand why this expression is not lazy: $path = "some\path\that\annoys" ConsoleWrite(StringRegExpReplace($path, "\\.+?$", "", 0) & @CRLF) I'm trying to delete just "annoys" but the regexp matches "paththatannoys"
  17. I want to generate a regex from an user input and need a regex prepare function. I couldn't find any in the documentation, am I missing something? It should escape out all regex characters, so like "te.st" would become "te.st".
  18. I haven't posted anything in the examples section for about 6-7 weeks, so felt it was that time again. This shows how to use the string functions of AutoIt and regular exp<b></b>ressi&#111;ns. The header pretty much explains what the function(s) do. #include <MsgBoxConstants.au3> #include <String...
  19. :idea:Someone should figure out an easier way to match things than using regular expressions. I need some help matching things -- I can't seem to get my regular expressions to work. So here is what I am trying to do: Basically, I want to have just the hilighted parts extracted. I am trying t...
  20. I want to remove all characters in a string, from an Asterisk to the end of the string, but the End Of Line regular expression character ('$') does not work for me. $pat = "[*]$" consolewrite("+++: " & StringRegExpReplace("D:\Temp\File.txt * 2abc def" ,$pat, "") & @CRLF $pat = "[*]" consolewrit...
  21. 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 prob...
  22. _DOSWildcardsToPCRegEx (+GUI) While I've posted an earlier version of this elsewhere (I will redirect to here don't worry), I figured I might as well provide a GUI interface to expose what this function does and returns, and allow its results to be copied/pasted elsewhere (like to AgentRansack, a...
×
×
  • Create New...