Re: Regex for URL (John Baughman)

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Regex for URL (John Baughman)

by B. Perkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John,

Since QFree uses PCRE (Perl Compatible Regular Expressions) you will
find many pattern examples via Google, e.g. "PCRE URL regex". It is
worth looking at a few of these to understand some of the challenges
that URL matching can present. It really depends on how you define a
"URL" and how strict you want to get. For example, must the top-level
domain match allowed values (.com, .net, etc.)?

Best,

Brad



**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Parent Message unknown Re: Regex for URL (John Baughman)

by John Baughman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

        Before posting to the NUG, I spent hours browsing the internet  
looking for something that would work reasonably well without much luck.

        Thanks John, that is a great site and had several URL Validation  
expressions to choose from plus a whole lot more.

John

On Jul 1, 2008, at 5:27 AM, John Guerin wrote:

> If you don't get actual 4D/Qfree code, I needed regex expression for
> some PHP work I did and got samples here:  http://regexlib.com/
**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: Regex for URL (John Baughman)

by Rick Hazey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jul 1, 2008, at 11:58 AM, John Baughman wrote:

> Before posting to the NUG, I spent hours browsing the internet  
> looking for something that would work reasonably well without much  
> luck.
>
> Thanks John, that is a great site and had several URL Validation  
> expressions to choose from plus a whole lot more.


This site is also good for regex info and examples:

http://www.regular-expressions.info/


Rick Hazey
bitworx, inc.
**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************