Recently Browsing 0 members
No registered users viewing this page.
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 not a good choice.
Can anyone help me with regular expression to find the number from String using AutoIT. TIA
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 single word (Elton John should be considered a single word and as that quoted as "Elton John")
the following string
[[Elton John,Peter,Sally,123],[1 one 1,2,3,4 four 4]] should be transformed to this other string
[["Elton John","Peter","Sally",123],["1 one 1",2,3,"4 four 4"]] Thanks for your help
Here a small script to use as "guinea pig"
#include <Array.au3> Local $aArray = [["Elton John", "Peter", "Sally", 123],["one 1", 2, 3, "4 four 4"]] MsgBox(0, "Result", _Array2Json($aArray)) Func _Array2Json($aArray) If (Not IsArray($aArray)) Or (UBound($aArray, 0) > 2) Then Return SetError(1, 0, '') Local $sOpening, $sClosing If UBound($aArray, 0) = 1 Then $sOpening = '[' $sClosing = ']' Else $sOpening = '[[' $sClosing = ']]' EndIf $sOutpt = $sOpening & _ArrayToString($aArray, ",", -1, -1, "],[") & $sClosing ; $sOutpt = ???? how to quote strings ???? Return $sOutpt EndFunc ;==>_Array2Json
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.
But 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.
Match Match of arrays Match and replace Load source data from website Load source data from a website with GET/POST Load text data from file Clear fields Export and Import settings (you can finish the expression a other time, just export/import it) Cheat sheet Generate AutoIt code example code The source code is not difficult and I think most user will understand it.
In the zip file there is a export files (reg back example), you can drag and drop this files on the gui to import it.
Download Regex Toolkit Regex toolkit.zip (Sourcode, example and compiled exe file)
EDIT: Updated to version V1.2.0
Expand and collapse of the cheat sheet (Thanks to Melba23 for the Guiextender UDF) Usefull regular expressions websites links included in the program Text data update time EDIT: Updated to version V1.3.0
Automatic generate AutoIt code Icons on the tab Few minor bug fixes EDIT: Updated to version V1.4.0
Link to AutoIt regex helpfile If the regular expression has a error than the text becomes red Option Offset with Match and array of Matches Option Count with Match and replace Some small minor bug fixed EDIT: Updated to version V1.4.1
Small bug in "create AutoIt" code fixed EDIT: Updated to version V1.4.2
Small bug in "create AutoIt" code fixed Bug with website data fixed
Regex toolkit.zip (Sourcode, example and compiled exe file)
here a little tool to create ISO files from default ISO 9660 (2048 bytes/sector) CD or DVD format (no audio cd and BD support yet!)
Source is too huge for code box -> Look here to have a look to the source code
Additional credits to:
Ward for MD5 checksum / MemoryDLL routines
Harald Vistnes for cd2iso used in v1 and v2
Yashied for WinAPIEx.au3
wolf9228 to play wave from memory
Download (purely written with AutoIt): ISO Creator v1.16 build 2015-07-13 beta.7z (1110 downloads previously)
Thanks to smashly for pointing me to right direction
The development of v1 and v2 is discontinued!
Download v1: ISO Creator v1.0.0 build 2011-08-03 beta v1.7z (195 downloads previously)
Download v2 (everything is called directly from memory): ISO Creator v1.0.0 build 2011-08-03 beta v2.7z (117 downloads previously)
Thanks to smartee for the DLL version (experimental) of cd2iso!
v1 is using cd2iso.exe to create the ISO
v2 is using cd2iso.dll which was created by smartee.
For compiled v1, v2 and pure AutoIt versions only (x86) visit (ISO Creator Exe only): 4shared.com or MediaFire
You can call ISO Creator.exe also with command line parameters: ISO Creator.exe -s [source cd/dvd drive] -d [filename] (-md5) (-aem) (-exit)
-s and -d are mendatory if called from command line!
Tested on Win7 x64.
If you find any bug please report here!
Many thanks to smartee and smashly for their efforts on this project!