---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@w=ebdna.usI've been using t=his code for years but have found some issues with it and don't understand G=rep well enough to figure out how to fix it.[=grep search=3Dhttp://([^ ]*)&replace=3D<a href=3D"=http://\1">\1</a>][=grep search=3Dhttp://([^%=0A]*)&replace=3Dhttp://\1 ][convertchars][story][/convertchars][/grep]=[/grep]Here's an example of the data in the =variable [story]:June 21st
USAV JBT Central Open Qualifier #2<=br>Bradford Beach, Milwaukee
Register Here - http://tinyurl.com/mjhgzx6/Regi=ster for Club - ht=tp://tinyurl.com/od8bmso/I understand that the= first Grep is searching for the http:// and a trailing space, but in the ex=ample above there is no trailing space because the link is at the end of the= line and followed by a return. I assumed that's what the second grep was lo=oking for, but this is what the resulting link is:<=;a href=3D"http://tinyurl.com/=a>mjhgzx6/<br>Register">tin=yurl.com/mjh=gzx6/<br>Register</a> for Club=The only workaround I've found it to go in and e=nter a space after the links. I'm sure it's probably an easy fix to someone =that knows how to use Grep.Off topic: Could Grep be used to format phone numbers as 999-999-9999, or= are there too many different ways for people to enter them into a text fiel=d. Common entries would be 9999999999, 999.999.9999, 1-999-999-9999, (999) 9=99-9999, et. I realize I could redo my forms to make them enter area code, p=refix and line number separately, but I'm hoping for an easier method. Thanks,Eddie Zelhofer<=br>Thinksite, LLC
920-420-2066
http://www.thinksite.com
|
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@w=ebdna.usI've been using t=his code for years but have found some issues with it and don't understand G=rep well enough to figure out how to fix it.[=grep search=3Dhttp://([^ ]*)&replace=3D<a href=3D"=http://\1">\1</a>][=grep search=3Dhttp://([^%=0A]*)&replace=3Dhttp://\1 ][convertchars][story][/convertchars][/grep]=[/grep]Here's an example of the data in the =variable [story]:June 21st
USAV JBT Central Open Qualifier #2<=br>Bradford Beach, Milwaukee
Register Here - http://tinyurl.com/mjhgzx6/Regi=ster for Club - ht=tp://tinyurl.com/od8bmso/I understand that the= first Grep is searching for the http:// and a trailing space, but in the ex=ample above there is no trailing space because the link is at the end of the= line and followed by a return. I assumed that's what the second grep was lo=oking for, but this is what the resulting link is:<=;a href=3D"http://tinyurl.com/=a>mjhgzx6/<br>Register">tin=yurl.com/mjh=gzx6/<br>Register</a> for Club=The only workaround I've found it to go in and e=nter a space after the links. I'm sure it's probably an easy fix to someone =that knows how to use Grep.Off topic: Could Grep be used to format phone numbers as 999-999-9999, or= are there too many different ways for people to enter them into a text fiel=d. Common entries would be 9999999999, 999.999.9999, 1-999-999-9999, (999) 9=99-9999, et. I realize I could redo my forms to make them enter area code, p=refix and line number separately, but I'm hoping for an easier method. Thanks,Eddie Zelhofer<=br>Thinksite, LLC
920-420-2066
http://www.thinksite.com
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...