Re: [nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread Michael B Allen
On Thu, Jul 24, 2008 at 7:50 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: > But it would be nice to exclude those end-of-sentence punctuation from > the capture output. I tried the following minimalistic expression just > to try and get the trailing condition right I'm not able to > distinguish b

Re: [nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread Michael B Allen
On Thu, Jul 24, 2008 at 5:34 PM, John Campbell <[EMAIL PROTECTED]> wrote: > On Thu, Jul 24, 2008 at 4:32 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: >> On Thu, Jul 24, 2008 at 2:37 PM, John Campbell <[EMAIL PROTECTED]> wrote: >>> On Thu, Jul 24, 2008 at 2:19 PM, Michael B Allen <[EMAIL PROTECTED

Re: [nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread John Campbell
On Thu, Jul 24, 2008 at 4:32 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: > On Thu, Jul 24, 2008 at 2:37 PM, John Campbell <[EMAIL PROTECTED]> wrote: >> On Thu, Jul 24, 2008 at 2:19 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: >> What is the context for the matching? > > This will be used to pi

Re: [nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread Michael B Allen
On Thu, Jul 24, 2008 at 4:32 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: > Please visit > http://www.yahoo.com/usèrs+100%&lusers$/~jerry/y_a-n.g/Yahoo;=^(!)foo. Well gmail is picking out and linking the above link up to but not including '^'. I wonder if it will link the remaining characters

Re: [nyphp-talk] Re: A good PCRE expression for matching URLs

2008-07-24 Thread Michael B Allen
On Thu, Jul 24, 2008 at 3:25 PM, -- rada -- <[EMAIL PROTECTED]> wrote: > Michael > > Check out Zend's URI validation. It uses permissible characters rather than > excluded characters. > > http://framework.zend.com/manual/en/zend.uri.html#zend.uri.chapter > > (you'll want to take a look at /Uri/Http

Re: [nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread Michael B Allen
On Thu, Jul 24, 2008 at 2:37 PM, John Campbell <[EMAIL PROTECTED]> wrote: > On Thu, Jul 24, 2008 at 2:19 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: >> Does anyone have a good PCRE for matching URLs? >> >> Or perhaps someone can improve (or correct) the expression I'm using >> currently: >> >>

Re: [nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread Daniel Convissor
On Thu, Jul 24, 2008 at 02:19:58PM -0400, Michael B Allen wrote: > Does anyone have a good PCRE for matching URLs? Here's an ereg expression I wrote many years ago: eregi_replace("(http://|https://|ftp://|gopher://|news:|mailto:)([[:alnum:]/!#$%&'()*+,.:;[EMAIL PROTECTED])([[:alnum:]/!#$%&'()*+:

[nyphp-talk] Re: A good PCRE expression for matching URLs

2008-07-24 Thread -- rada --
Michael Check out Zend's URI validation. It uses permissible characters rather than excluded characters. http://framework.zend.com/manual/en/zend.uri.html#zend.uri.chapter (you'll want to take a look at /Uri/Http.php) Cheers Rada Lapsker ___ New

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Joseph Crawford
Ben, I am not sure what you mean. I imported my google contacts into scour and told it to only send to certain contacts but it sent to ALL contacts. Sorry for the spam Thanks, Joseph Crawford On Jul 24, 2008, at 2:42 PM, Ben Sgro wrote: Hey Joseph, You seem to have subscribed my email (

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Ben Sgro
Hey Joseph, You seem to have subscribed my email (along w/the signup for scour) to a codebowl mailing list...I've already received 3 emails in the last 4 hours. Please remove me... - Ben Joseph Crawford wrote: Yea sorry about that Mitch :) This is not typical of me a

Re: [nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread John Campbell
On Thu, Jul 24, 2008 at 2:19 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: > Does anyone have a good PCRE for matching URLs? > > Or perhaps someone can improve (or correct) the expression I'm using > currently: > > $expr = '[a-zA-Z0-9]{1,10}://[a-zA-Z0-9.-]+[\p{L}/~._-]*|mailto:[EMAIL > PROTECT

[nyphp-talk] A good PCRE expression for matching URLs

2008-07-24 Thread Michael B Allen
Does anyone have a good PCRE for matching URLs? All of the examples that I have looked at in various places are too simple or exclude invalid characters rather than include valid ones (and of course fail to exclude all bad characters) or don't properly use escaping ... etc. Or perhaps someone can

[nyphp-talk] Re: Embedding PL/SQL procedure into PHP

2008-07-24 Thread -- rada --
Julia Do you still need info re. using oracle stored procs in php? I have a lot of experience with both... feel free to ask any questions. -rada - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: talk@lists.nyphp.org Sent: Thursday, July 24, 2008 11:07:04 AM Subject:

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Scott Mattocks
Do you really plan to spam every list you are on with this message? I just want to know now so that I can set up a filter to remove then automatically. Thanks. ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Joseph Crawford
Yea sorry about that Mitch :) This is not typical of me and YOU know that. Thanks, Joseph Crawford On Jul 24, 2008, at 11:05 AM, Mitch Pirtle wrote: I was starting to wonder about you Joe - you didn't seem the type to send an email and then send it again; and then send it again. ;-) O

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Joseph Crawford
haha Rolan, I hear ya there. I dunno why it sent to everyone like it did, seems kinda retarded to me. Joseph Crawford On Jul 24, 2008, at 10:41 AM, Rolan Yang wrote: Hrm.. another web 2.0'ism is about to be born. We already have phishing, vishing (voip based phishing). I'd like to coin

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Mitch Pirtle
I was starting to wonder about you Joe - you didn't seem the type to send an email and then send it again; and then send it again. ;-) On Thu, Jul 24, 2008 at 10:46 AM, Joseph Crawford <[EMAIL PROTECTED]> wrote: > haha Rolan, > > I hear ya there. I dunno why it sent to everyone like it did,

[nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Joseph Crawford
Hey, Did you hear about Scour? It is the next gen search engine with Google/Yahoo/MSN results and user comments all on one page. Best of all we get paid for using it by earning points with every search, comment and vote. The points are redeemable for Visa gift cards! It's like earning credit ca

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Rolan Yang
Hrm.. another web 2.0'ism is about to be born. We already have phishing, vishing (voip based phishing). I'd like to coin the term scishing (scour.com phishing?). Scishing - (ski'-shing) : The act of fooling an internet user into divulging their web mail login/password during registration, then

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Joseph Crawford
Scott, This was not intentional. I imported my google contacts, choose which addresses to NOT send to and YET it STILL sent to them. I apologize this was not done on purpose. Thanks, Joseph Crawford On Jul 24, 2008, at 10:17 AM, Scott Mattocks wrote: Do you really plan to spam every list

Re: [nyphp-talk] need another pair of eyes!

2008-07-24 Thread Kristina Anderson
This project has since lost some of its urgency and so I've decided to try both suggestions, below (thanks Tim), and whatever else is necessary to get this working the way I need. I'll post both the old code which is working without the new "feature" and the new code in progress. What the a

Re: [nyphp-talk] Embedding PL/SQL procedure into PHP

2008-07-24 Thread bzcoder
Julia Sheehy wrote: Rather than recreating an entire procedure and the functions it uses we'd like to call the proc from within PHP like you would a stored perl function. We are an Oracle-PHP shop. Well, I don't use stored procedures or Oracle much, but a quick google search reveals thi