Rex V, a Regex Evaluator - testers wanted

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

bundyo
Forum Newbie
Posts: 12
Joined: Tue Jan 03, 2006 3:09 pm

Rex V, a Regex Evaluator - testers wanted

Post by bundyo »

Hello all,

If someone wants to help me test my regex tester, head over to http://www.rexv.org/

Any comments and suggestions will be appreciated.

10q :wink:
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Rex V, a Regex Evaluator - testers wanted

Post by Chris Corbyn »

bundyo wrote:Hello all,

If someone wants to help me test my regex tester, head over to http://www.rexv.org/

Any comments and suggestions will be appreciated.

10q :wink:
How do you use it? I was expecting to be in awe since I'm practically in love with Regex :P but it doesn't seem to do anything in Firefox 1.5 :(

I typed a search and a replacement in the PCRE tab then clicked update manually and nothing happened. Could you explain how it works? :D

EDIT | Apologies I'm a dumbass :P I had to have some text in the bottom. I thought it was going to explain my regex to me :) It seems to be having issues with my patterns though :? /^foo/i gives "Unknown modifier 'f'"
Last edited by Chris Corbyn on Tue Jan 03, 2006 4:17 pm, edited 1 time in total.
bundyo
Forum Newbie
Posts: 12
Joined: Tue Jan 03, 2006 3:09 pm

Post by bundyo »

You should have a target to match against... Clicking on the Manual update isn't necessary, since it's updating automatically after you stop typing :)

Ah, forgot - i'm using Firefox 1.5 as a main browser, but it should work in all major browsers (tested in Firefox 1.5, IE5+, Opera 7.54)
But if you see a bug or two, don't hesitate to drop me a message :)
Last edited by bundyo on Tue Jan 03, 2006 4:18 pm, edited 1 time in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

bundyo wrote:You should have a target to match against... Clicking on the Manual update isn't necessary, since it's updating automatically after you stop typing :)
LOL yeah apologies... see my edit in the last post :)
bundyo
Forum Newbie
Posts: 12
Joined: Tue Jan 03, 2006 3:09 pm

Post by bundyo »

I should warn the people that the modifiers are checked on the left and the regex should be typed without the enclosing /../ :)

Guess i should write more help than i had :)) and i had none on usage :)))
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

It's very cool, and it seems to work with a test regexes. Maybe like if d11 said it offered some kind of verbose output as to what the regex is doing that would be cool, or if it offered other debugging options while I'm writing a regex. It also took a minute to figure out your interface, I think I should be presented with a simple two textbox form "text to match against" and "regex" right away, then if I want I can switch to the tab with more options

just some constructive criticism
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

bundyo wrote:I should warn the people that the modifiers are checked on the left and the regex should be typed without the enclosing /../ :)

Guess i should write more help than i had :)) and i had none on usage :)))
I see.... clever stuff.... :)

I'll have a good play with this and see if I find any bugs. For the fact that you don't put the delimiters on I'll assume it assumes /pattern/ and thus I must escape all forward slashes? :) Impressive if this works well.
bundyo
Forum Newbie
Posts: 12
Joined: Tue Jan 03, 2006 3:09 pm

Post by bundyo »

10x for your criticism and help :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

This is very nice indeed.... I'm putting it through it's paces. It would certainly be a good learning tool for people who find regex hard to grasp and are impatient to figure it out. it's also damn good for when you need to write complex regex that take a lot of refining. The fact the the match updates on-the-fly is beautiful and the way it breaks down the output is great.

If I don't find any bugs in this within the next day or so of testing I'll add it to a "Useful Resources" page as a sticky in this forum along with some other useful sites :)
bundyo
Forum Newbie
Posts: 12
Joined: Tue Jan 03, 2006 3:09 pm

Post by bundyo »

10x.

Btw, i know of a problem i have with the evaluator (even though it is quite useful without it, but it will good to have it) - i can't think of a way (for now) to show whitespaces properly in the output because html rendering strips them. I can replace them with  -s but then i'll break the matching... even if it doesn't break i should watch out for the coloring tags and such which won't show correctly then.

If someone has an idea, i'll be glad to hear it :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

bundyo wrote:10x.

Btw, i know of a problem i have with the evaluator (even though it is quite useful without it, but it will good to have it) - i can't think of a way (for now) to show whitespaces properly in the output because html rendering strips them. I can replace them with  -s but then i'll break the matching... even if it doesn't break i should watch out for the coloring tags and such which won't show correctly then.

If someone has an idea, i'll be glad to hear it :)

Code: Select all

<pre>code with                long space</pre>
The text will be monospace by default but you can alter that with a little CSS

Code: Select all

<pre style="font-size: 0.9em; color: #555555; font-family: arial, sans-serif;">....</pre>
;)
bundyo
Forum Newbie
Posts: 12
Joined: Tue Jan 03, 2006 3:09 pm

Post by bundyo »

Yes, i know that :) I also can do it with <xmp> for instance...

The coloring is bothering me - HTML tags don't play along inside <pre> or <xmp>.

I also want the text to wrap, not to scroll horisontally :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

bundyo wrote:Yes, i know that :) I also can do it with <xmp> for instance...

The coloring is bothering me - HTML tags don't play along inside <pre> or <xmp>.

I also want the text to wrap, not to scroll horisontally :)

Code: Select all

<div style="white-space: pre;">big long                          space here










and              here
</div>
bundyo
Forum Newbie
Posts: 12
Joined: Tue Jan 03, 2006 3:09 pm

Post by bundyo »

Okay, i'll try with <pre> again... Hope to work something out :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

bundyo wrote:Okay, i'll try with <pre> again... Hope to work something out :)
In case you missed it the above was all CSS based.... no <pre> tags invloved ;)

http://chriscorbyn.co.uk/phpdn/ex.html
Post Reply