This thing does SRE and SRER.
Loads files to test.
Gets internet content to test.
And more!
Here it is:
SRETesterV2.1.au3 11.41K
1505 downloadsPrev DL - 211
Enjoy!
Edited by Szhlopp, 10 October 2008 - 04:07 PM.
Posted 03 September 2008 - 08:27 PM

POPULAR
SRETesterV2.1.au3 11.41K
1505 downloadsEdited by Szhlopp, 10 October 2008 - 04:07 PM.
Posted 04 September 2008 - 04:12 AM
Quick update:Since there are WAY to many posts on how to SRE something I thought I would create a nice little tester.
![]()
This thing does SRE and SRER.
Loads files to test.
Gets internet content to test.
And more!
Here it is:
Prev DL - 14
Enjoy!
Posted 04 September 2008 - 05:38 AM
Posted 04 September 2008 - 07:43 AM
Posted 04 September 2008 - 04:10 PM
Sweet!! Now if you can release that bot that will come cram REGEX into my brain!! LOL I just don't get it...
I can't pull myself out of a wet paper bag using regex... LOL
Posted 04 September 2008 - 06:19 PM
Posted 05 September 2008 - 01:43 AM
Sounds a little like "Regulazy": http://weblogs.asp.net/rosherove/pages/too...y-osherove.aspxFunny you mention it...
I actually was thinknig about writing a 'bot'.
You supply it the text:
<Xml>Hey</xml>
Highlight it:
<Xml>Hey</xml>
Press the button and you get some options on how it should be formatted.
Posted 05 September 2008 - 06:29 AM
Sounds a little like "Regulazy": http://weblogs.asp.net/rosherove/pages/too...y-osherove.aspx
Posted 05 September 2008 - 02:33 PM
I downloaded it and will have to sit down with it.. Thanks.. Still waiting for Szhlopp's BOT.. LOL
Posted 08 September 2008 - 07:05 AM
However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator
Posted 08 September 2008 - 08:47 PM
Is there any way to add highlighting of matched terms in the text/file view?
Thank you very much, btw, it's saving me a ton of work formatting data for a database
Posted 10 October 2008 - 04:10 PM
Posted 24 October 2008 - 09:44 AM
I was trying this out with your program but could not get anything working.CONDITIONAL SUBPATTERNS
It is possible to cause the matching process to obey a subpattern conditionally or to choose between two
alternative subpatterns, depending on the result of an assertion, or whether a previous capturingsubpattern
matched or not. The two possible forms of conditional subpattern are
(?(condition)yes-pattern) or (?(condition)yes-pattern|no-pattern)
If the condition is satisfied, the yes-pattern is used; otherwise the no-pattern (if present) is used.
If there are more than two alternatives in the subpattern, a compile-time error occurs.
(\d)?(\d):(\d)?(\d):\d\d
(?(1)\1|0)\2:(?(3)\3|0)\4
(?(1)1|0)1:(?(3)3|0)4 (?(1)|0)6:(?(3)4|0)8 but should be 11:34 06:48
Posted 24 October 2008 - 04:04 PM
Uhm, I have no idea what you're asking....I was trying this out with your program but could not get anything working.
Is it your program that ignores this or is it AutoIt which does not implement this part of regexp?
Sample input 11:34:26 and 6:48:32 where I want the second to have the 6 zero filled and the seconds removed
Fromto(\d)?(\d):(\d)?(\d):\d\d(?(1)\1|0)\2:(?(3)\3|0)\4
output is(?(1)1|0)1:(?(3)3|0)4 (?(1)|0)6:(?(3)4|0)8 but should be 11:34 06:48
Hello You Hello Me Hello Myself
(?i)Hello\s?(?:You|Me)
Posted 27 October 2008 - 04:46 PM
If Conditional subpatterns are NOT supported by AutoIt or just your program.Uhm, I have no idea what you're asking....
I thought I did!Help explain?
Posted 27 October 2008 - 08:49 PM
"(\d*:\d*):"
Posted 28 October 2008 - 06:13 AM
Posted 28 October 2008 - 09:02 AM
With what he was doing there was no need for a conditional so I just gave him the RegExp in my reply. What that says is; get a digit 0 or more times then the colon then digits 0 or more times again and stop at the next colon. Since none of the characters can be case sensitive I didn't need (?i). It could also heve been written as (?i)(\d*[h:]\d*): which would also allow for those people who have an h as the Hr/Min separator instead of a colon. If it was being used in a StringRegExpReplace situation I would probably use something like (\d*):|h(\d*) as inGarp99HasSpoken, AutoIT is using PCRE engine for regex.
PCRE is supporting/implementing conditional subpatterns so there should not be any problem to use them with AutoIT.
But coming back to the GUI proposed by Szhlopp, what it does, is to give you an easy way to test regex without coding script (a bit like RegexBuddy). It helps you to test one regex at time.
Now coming back to your example, I do not understand how it can achieve what you expect in one regex?
Can you explain how you would use it within one regex (only)?
I'm quite new at these regex, but willing to learn.
Thanks.
Best regards.
Edited by GEOSoft, 28 October 2008 - 10:09 AM.
Posted 28 October 2008 - 10:20 AM
$sStr = StringRegExpReplace($sStr, "(\d*:\d*)(:.*)", "\1")
(\d)?(\d):(\d)?(\d):\d\d
Posted 28 October 2008 - 11:05 AM
The simple explanation for 1 expression is .... you can't.GEOSoft,
I can not make to work any of the example you provide...
Based on your first proposal, some thing like:
$sStr = StringRegExpReplace($sStr, "(\d*:\d*)(:.*)", "\1")
would be closer (to remove seconds), but is still missing the requirement to have a zero filled at the beginning when you have 6:48:32->06:48
Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
0 members, 1 guests, 0 anonymous users