Jump to content
AZJIO

RegExp

Recommended Posts

AZJIO

RegExp - Test regular expressions (En, Ru) v1.0.2

screenshot

b5bcf7522484.png

RegExp.7z (0.9 MB, exe+sources+Library_RegExp, v0.8 + v1.0.2)

The tool is designed to test regular expressions. Allows you to save the template in the library.

alternative:

>String Regular Expressi0n Tester V2, Szhlopp

C:Program FilesAutoIt3ExamplesHelpfileStringRegExpGUI.au3

>RegExp Quick Tester, Lazycat

>RegEx tester, Mat

Edited by AZJIO
  • Like 1

Share this post


Link to post
Share on other sites
rvn

cool script AZJIO!!!

help me alot,,, thanx for sharing ;)

Share this post


Link to post
Share on other sites
wraithdu

This one looks interesting. Couple things:

1) Can you explain a little more what the options 'Calculate' and 'No Update' do?

2) The Grouping options 2 and 4 don't seem to display correctly, try the 'mail' or 'URL' examples.

3) The checkbox next to Group is counterintuitive. I would expect checking the box to display the 'Group #:' text, not hide it.

Share this post


Link to post
Share on other sites
AZJIO

1. 'Calculate'... Sometimes you need to use the sample replacement "$0"&@CRLF, but it is literally. To change this, you should use the option 'Calculate'

'No Update'... When choosing a template in the right list is changing the text in the search box. But sometimes you want to insert special text which shouldn't will be replaced when choosing a template.

Perhaps the translation on the buttons and in tooltips are not correct or do not understand?

2. Maybe not the perfect template, but the program correctly interprets.

3. OK

Edited by AZJIO

Share this post


Link to post
Share on other sites
wraithdu

2. Maybe not the perfect template, but the program correctly interprets.

Not quite. Try the 'mail' template and grouping option 4. It should display the results, yet is blank.

Share this post


Link to post
Share on other sites
AZJIO

It does not work with 4. So it should be. This is normal. It should work with 3, it is the rule.

#include <Array.au3>
$p='technic aaa@mail.ru '&@CRLF&'work aa1@mail.com yes'
$test=StringRegExp($p, '[A-Za-z0-9._-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}', 4)
_ArrayDisplay($test, 'Array')
$test=StringRegExp($p, '[A-Za-z0-9._-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}', 3)
_ArrayDisplay($test, 'Array')

Share this post


Link to post
Share on other sites
wraithdu

Flag 4 returns an array of arrays.

#include <Array.au3>
$p='technic aaa@mail.ru '&@CRLF&'work aa1@mail.com yes'
$test=StringRegExp($p, '[A-Za-z0-9._-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}', 4)
For $e In $test
    _ArrayDisplay($e)
Next
Edited by wraithdu

Share this post


Link to post
Share on other sites
AZJIO

updated

Saves position and size of the window

Add in the RegExp.ini

RedColor=FF8080
TextColor=999999
BkColor=3F3F3F
GuiBkColor=777777

RedColor=c53800
TextColor=000000
BkColor=d0c8ac
GuiBkColor=aba48c
Edited by AZJIO

Share this post


Link to post
Share on other sites
guinness

I'm going to give this one a try. Thanks.


UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Share this post


Link to post
Share on other sites
ileandros

These u have are good in the list but i think you should add a lot more. IF this programm is not offering examples then why should i use it and not just write my own script?

Anyway im giving it a shot


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites
Danyfirex

Thank you, this is so usefull.

saludos

Edited by Danyfirex

Share this post


Link to post
Share on other sites
AZJIO

Update
1.0.2

Checkbox color (on / off. color in the regular expression)

Share this post


Link to post
Share on other sites
AZJIO

Added interaction with programs (Notepad++, SciTE, AkelPad4). Inserts or captures texts from the search and replace windows.

flag "On top of all windows"

Command line added

-s:"search" - Fills the field. For example, the selected regular expression in the code. $(CURRENT_WORD) for Notepad++.

-r:"replace" - Fills the field

-p:"path" - Fills the field with the contents of the file

-n:"1" - Capture from Notepad++

-n:"2" - Capture from SciTE

-n:"3" - Capture from AkelPad4

Share this post


Link to post
Share on other sites
Simpel

Hi.

The examples (in the library) in the 7z-file are all something like that:

[z--z]
Íàéòè ïîâòîð ñëîâà
(?<![^\s\A])([À-ÿ¨¸]+)[\h]+\1

33
Ýòîò øàáëîí ïîçâîëÿåò íàéòè ïîâòîðû ïîâòîðû â ñëîâàõ.
Òàêàÿ îøèáêà ÷àñòî âñòðå÷àåòñÿ ó ïèñàòåëåé ïèñàòåëåé ðåäàêòèðóþùèõ ñâîè òåêñòû.
Áóäòå îñòîðîæíû, ïîâòîðû íå âñåãäà ÿâëÿþòñÿ îøèáêîé, äà äà.

Somebody a hint how to change that?

Simpel


SciTE4AutoIt = 3.7.3.0   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites
AZJIO

I converted to UTF, now you can use google translate to your language.

Download again

Share this post


Link to post
Share on other sites
Simpel

Спасибо.

Может быть, я могу сделать это сам. Я учил русский язык в школе. Очен мало.

Thanks and regards, Simpel


SciTE4AutoIt = 3.7.3.0   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×