Jump to content



Photo

RegExp


  • Please log in to reply
14 replies to this topic

#1 AZJIO

AZJIO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 998 posts

Posted 19 August 2010 - 12:11 AM

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

screenshot

RegExp.7z (310kb, exe+sources+Library_RegExp, v0.8 + v1.0)
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 Files\AutoIt3\Examples\Helpfile\StringRegExpGUI.au3

RegExp Quick Tester, Lazycat
RegEx tester, Mat

Edited by AZJIO, 29 April 2013 - 02:22 AM.

  • Vincor likes this







#2 YogiBear

YogiBear

    deFinitely not yoUr average bear!

  • MVPs
  • 9,873 posts

Posted 19 August 2010 - 03:53 AM

do you have a script in English? What you have looks good!

#3 rvn

rvn

    Wayfarer

  • Active Members
  • Pip
  • 80 posts

Posted 03 September 2010 - 08:55 AM

cool script AZJIO!!!

help me alot,,, thanx for sharing ;)

#4 wraithdu

wraithdu

    I am less fun than a twisted ankle.

  • MVPs
  • 2,137 posts

Posted 06 December 2011 - 07:55 PM

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.

#5 AZJIO

AZJIO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 998 posts

Posted 06 December 2011 - 09:07 PM

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, 06 December 2011 - 09:08 PM.


#6 wraithdu

wraithdu

    I am less fun than a twisted ankle.

  • MVPs
  • 2,137 posts

Posted 06 December 2011 - 09:49 PM

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.

#7 AZJIO

AZJIO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 998 posts

Posted 07 December 2011 - 03:44 AM

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')


#8 wraithdu

wraithdu

    I am less fun than a twisted ankle.

  • MVPs
  • 2,137 posts

Posted 07 December 2011 - 06:20 AM

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, 07 December 2011 - 06:21 AM.


#9 AZJIO

AZJIO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 998 posts

Posted 07 December 2011 - 07:41 AM

Thanks
Error fixed
updated

#10 AZJIO

AZJIO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 998 posts

Posted 16 March 2012 - 03:07 PM

updated
v0.8
The test of ranges is added
Removed the limit on the number of inserted characters in Edit
ComboBox with a history of recently used SPE

#11 AZJIO

AZJIO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 998 posts

Posted 07 June 2012 - 12:57 AM

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, 08 June 2012 - 09:08 PM.


#12 guinness

guinness

    guinness

  • MVPs
  • 10,391 posts

Posted 07 June 2012 - 01:01 AM

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

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_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()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_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()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#13 ileandros

ileandros

    Universalist

  • Banned (NOT IN USE)
  • 592 posts

Posted 21 June 2012 - 03:46 PM

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.

#14 Danyfirex

Danyfirex

    Polymath

  • Active Members
  • PipPipPipPip
  • 239 posts

Posted 17 September 2012 - 06:09 PM

Thank you, this is so usefull.

saludos

Edited by Danyfirex, 17 September 2012 - 06:14 PM.

Posted Image


#15 AZJIO

AZJIO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 998 posts

Posted 29 April 2013 - 02:45 AM

Update
Added: drop-down list to insert regular expression elements
The drop-down list to select the library instead of the "Open" button
Remembers the last open library




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users