Page 1 of 2
Rex V, a Regex Evaluator - testers wanted
Posted: Tue Jan 03, 2006 3:13 pm
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

Re: Rex V, a Regex Evaluator - testers wanted
Posted: Tue Jan 03, 2006 4:12 pm
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

How do you use it? I was expecting to be in awe since I'm practically in love with Regex

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?
EDIT | Apologies I'm a dumbass

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'"
Posted: Tue Jan 03, 2006 4:16 pm
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

Posted: Tue Jan 03, 2006 4:17 pm
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

Posted: Tue Jan 03, 2006 4:20 pm
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

))
Posted: Tue Jan 03, 2006 4:25 pm
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
Posted: Tue Jan 03, 2006 4:27 pm
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.
Posted: Tue Jan 03, 2006 4:31 pm
by bundyo
10x for your criticism and help

Posted: Tue Jan 03, 2006 4:35 pm
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

Posted: Tue Jan 03, 2006 4:43 pm
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

Posted: Tue Jan 03, 2006 4:56 pm
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

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>

Posted: Tue Jan 03, 2006 5:02 pm
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

Posted: Tue Jan 03, 2006 5:06 pm
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>
Posted: Tue Jan 03, 2006 5:11 pm
by bundyo
Okay, i'll try with <pre> again... Hope to work something out

Posted: Tue Jan 03, 2006 5:17 pm
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