AutoIt Forums: RegExp Quick Tester - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RegExp Quick Tester The name say all Rate Topic: ***** 2 Votes

#1 User is offline   Lazycat 

  • Coding cat
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 1,159
  • Joined: 15-December 03
  • Gender:Male
  • Location:Location: COLD

Posted 01 June 2006 - 10:58 AM

Since I start using RegExp more and more, I need a tool for quickly testing patterns. I tried script, created by steve8tch and w0uter, it's works fine, but I was bored to click Test button after 5 minutes :)
So, here is my version. It's concept is a bit different, this is not work with big files, because it's goal - quick testing. But it can:
  • Results are showing instantly while editing
  • Support replace pattern testing as well
  • Text and patterns are automatically saving between sessions
  • Middle mouse button click on search pattern editbox show menu with characters quick reference

Edit: updated code, fixed noticeable probs. Most likely this will be last version, if I would tried w0uter's version first (which suitable my needs), this would not appear :D

Edit:
2006-07-22: small fix - middlebutton context menu will show only when window active.
2007-10-09: version 2.5, updated to new PCRE and so on

Attached File(s)


This post has been edited by Lazycat: 09 October 2007 - 03:21 PM


#2 User is offline   w0uter 

  • resreveR nA
  • PipPipPipPipPipPipPip
  • Group: Full Members
  • Posts: 2,262
  • Joined: 11-January 05
  • Location:The Netherlands

Posted 01 June 2006 - 11:22 AM

mine didnt have a test button IIRC

[edit]http://www.autoitscript.com/forum/index.ph...16250&hl=regexp[/edit]

This post has been edited by w0uter: 01 June 2006 - 11:40 AM


#3 User is offline   Lazycat 

  • Coding cat
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 1,159
  • Joined: 15-December 03
  • Gender:Male
  • Location:Location: COLD

Posted 01 June 2006 - 12:07 PM

Ohh yeah. I read your reply to steve8tch version, you say it's more advanced, so I'm not tested yours... though actually it had regression in compare to yours...

#4 User is offline   w0uter 

  • resreveR nA
  • PipPipPipPipPipPipPip
  • Group: Full Members
  • Posts: 2,262
  • Joined: 11-January 05
  • Location:The Netherlands

Posted 01 June 2006 - 12:19 PM

that was when stringregexp was broken :P

afaik its fixed now. so give mine a go too :P

#5 User is offline   Lazycat 

  • Coding cat
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 1,159
  • Joined: 15-December 03
  • Gender:Male
  • Location:Location: COLD

Posted 01 June 2006 - 02:18 PM

Quote

that was when stringregexp was broken

You mean the prob, when function not reset @error? In .125 it's still here...

#6 User is offline   Confuzzled 

  • Mouse moved. Please restart Windows for changes to take effect.
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 988
  • Joined: 16-June 05

Posted 06 June 2006 - 03:20 PM

Are the many open problems in StringRegExp the showstopper preventing the 3.1.x beta regime from finishing?

#7 User is offline   JohnBailey 

  • Scripter
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 943
  • Joined: 16-January 07

Posted 08 October 2007 - 02:56 PM

This is RAD! Is there an update to working with the latests Production Release of AU3? I cannot compile the script. :(

It's rad. I think this would REALLY help me learn RegEx.

#8 User is offline   Lazycat 

  • Coding cat
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 1,159
  • Joined: 15-December 03
  • Gender:Male
  • Location:Location: COLD

Posted 08 October 2007 - 03:03 PM

View PostJohnBailey, on Oct 8 2007, 05:56 PM, said:

This is RAD! Is there an update to working with the latests Production Release of AU3? I cannot compile the script. :(

It's rad. I think this would REALLY help me learn RegEx.

Lol, this is a day of my old topics :king:
Yeah, I have new version already fixed to latest PCRE syntax and form with latest Koda abilities. Just need a time to code polishing :)

#9 User is offline   JohnBailey 

  • Scripter
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 943
  • Joined: 16-January 07

Posted 08 October 2007 - 03:04 PM

View PostLazycat, on Oct 8 2007, 09:03 AM, said:

Lol, this is a day of my old topics :king:
Yeah, I have new version already fixed to latest PCRE syntax and form with latest Koda abilities. Just need a time to code polishing :)



SWEET!

#10 User is offline   Lazycat 

  • Coding cat
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 1,159
  • Joined: 15-December 03
  • Gender:Male
  • Location:Location: COLD

Posted 09 October 2007 - 03:24 PM

@JohnBailey

I'm not planned posting updated version (many other RegExp tesing tools are available), but since you have an interest - it's here ;)

#11 User is offline   JohnBailey 

  • Scripter
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 943
  • Joined: 16-January 07

Posted 09 October 2007 - 03:26 PM

View PostLazycat, on Oct 9 2007, 09:24 AM, said:

@JohnBailey

I'm not planned posting updated version (many other RegExp tesing tools are available), but since you have an interest - it's here ;)



YAHOOOOOOOOOO!! :guitar: :dance:

thanks!! I'm excited to use a tool like this to help learn RegExp. I've read a lot on it, but I'm more "hands on"

Thanks!

Keep up the GREAT work!

#12 User is offline   JohnBailey 

  • Scripter
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 943
  • Joined: 16-January 07

Posted 09 October 2007 - 03:41 PM

Any ideas as to why my middle-click-mouse button won't "pull"/"call" the pop DummyContext menu? I know I can do work arounds, but that's REALLY a nice feature!

#13 User is offline   Lazycat 

  • Coding cat
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 1,159
  • Joined: 15-December 03
  • Gender:Male
  • Location:Location: COLD

Posted 09 October 2007 - 05:16 PM

View PostJohnBailey, on Oct 9 2007, 06:41 PM, said:

Any ideas as to why my middle-click-mouse button won't "pull"/"call" the pop DummyContext menu? I know I can do work arounds, but that's REALLY a nice feature!

Maybe this generate some other code instead 4? Though I'm tried at least on three systems with different mices, and this worked anywhere.

#14 User is offline   JohnBailey 

  • Scripter
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 943
  • Joined: 16-January 07

Posted 09 October 2007 - 05:51 PM

View PostLazycat, on Oct 9 2007, 11:16 AM, said:

Maybe this generate some other code instead 4? Though I'm tried at least on three systems with different mices, and this worked anywhere.


That's good to know that it's just my mouse (probably something wack with the drivers). Thank you for testing that!!

I just went with rightclick

#15 User is offline   Jex 

  • Spammer!
  • PipPipPip
  • Group: Full Members
  • Posts: 206
  • Joined: 02-September 07
  • Gender:Male

Posted 23 January 2008 - 04:44 PM

Very useful script for learn or test RegExp.
I'm looked http://www.autoitscript.com/autoit3/pcrepattern.html and http://www.regexbuddy.com/tutorial.html for learn but need to know English language very good for learn RegExp :( But with this script i will try until find true results :)

#16 User is offline   b123 

  • Newbie
  • Group: Members
  • Posts: 2
  • Joined: 24-January 08

Posted 24 January 2008 - 03:08 PM

thank you

#17 User is offline   Tiotua 

  • Newbie
  • Group: Members
  • Posts: 3
  • Joined: 12-April 09
  • Location:Germany

Post icon  Posted 12 April 2009 - 08:46 PM

After searching the forum, downloading & testing examples for days I finally ended up here.

Wow! This awesome piece of code seems to be fallen from heaven :cheer: Thank you!
Now I'm able to play around with (and learn) RegEx, which bumped my ass before ;)

However, to run it I had to include something additional:
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GuiTab.au3>

Maybe my AutoIt installation is broken? I use version 3.3.0.0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users