Jump to content
Sign in to follow this  
Mison

Regular expression pattern generator

Recommended Posts

Dolemite50

Cool man, I could use something like this.

It looks like you may need to escape quotes because it seems to be ignoring anything within " ".

Thanks for sharing!

Share this post


Link to post
Share on other sites
Mison

You are welcome. About the bug... How can I missed that! fixing it right away... thanks.


Hi ;)

Share this post


Link to post
Share on other sites
Mison

Cool man, I could use something like this.

It looks like you may need to escape quotes because it seems to be ignoring anything within " ".

Thanks for sharing!

Err... what's the error again? At first I thought it was rather obvious bug, but then when I tested it, I couldn't find any issue related to that. :)

Edited by Mison

Hi ;)

Share this post


Link to post
Share on other sites
Dolemite50

Ahhh, I think I see what the problem was.

The array isn't listed in order and when I parsed a multi line string into words it showed the first word at the top but the rest of the first sentence's words were listed much later. When I didn't see the second and third words showing up after the first I assumed the pattern must have missed them but as it turns out those unruly first-sentence scamps were hiding out near the bottom of the list out of scroll range.

It's a great start, keep at it. There's plenty of room for things like replace functionality, stored patterns, etc. There is an app called RegExp Quick Tester somewhere around here that might give you a few ideas. I think that Quick Tester's functionality combined with your app's "pseudo approach" would be my ideal util.

Share this post


Link to post
Share on other sites
Mison

Dolemite50, thanks for the nice words. As for the tester, I'm using one written by lokster. Very simple but powerful script IMO.

Multi line string? This was designed for a single line mode only.. no multi line option, yet. Maybe in the next release :)


Hi ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.