...

View Full Version : regex editor



angiras
01-23-2004, 09:31 AM
I don't know where to post this topic

do you know if exists a good regex (regular expression) editor ?

I find coding regex an horror .-))

I use editplus .....

liorean
01-23-2004, 03:03 PM
Since regex are not always written in the same way in different languages, it can be hard to find a generic one. Why don't you search for an editor for your personal favorite languages, that supports the regex syntax of that particular language, and stick to that?

angiras
01-23-2004, 03:16 PM
but regex is allways the same ... regex is regex .. no ?

liorean
01-23-2004, 03:24 PM
Regex is a term relating to a certain type of expressions. There are mathematical regular expressions, UNIX regular exporessions, POSIX regular expressions, PCRE (PERL Compatible Regular Expressions), PERL regular expressions (which aren't really regular expressions any longer), and regular expressions syntaces may vary between different languages even it they use the same basic components. So, it is largely language dependent.

See <http://en2.wikipedia.org/wiki/Regular_Expression> if you want to know more about what a regular expression truly is.

angiras
01-23-2004, 03:41 PM
yes you are right but I mean this kind
^(?:(?<Visa>4\d{3})|(?<Mastercard>5[1-5]\d{2})|(?<Discover>6011)|(?<DinersClub>(?:3[68]\d{2})|(?:30[012345]\d))|(?<AmericanExpress>3[4,7]\d{2}))([ -]?)(?(AmericanExpress)(?:\d{6}\1\d{5})|(?:\d{4}\1\d{4}\1\d{4}))$

we are generally using for internet formulars

thank you for the link !



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum