Re: Witango-Talk: Auto a href
Title: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone +612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Title: Re: Witango-Talk: Auto a href Ok, To use the ? (optional) operator you need to have the optional value Try https?://[^ ]* notice the s? this says that the s is optional a good test site is http://www.quanetic.com/regex.php Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:52 AM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone +612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Title: Re: Witango-Talk: Auto a href Ok try this [ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ] This says starts with [space]http has 1 to many non spaces chars ends with . and 2 to 4 chars with space after that Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:52 AM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone +612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Title: RE: Witango-Talk: Auto a href Tried this... @assign str @arg text SCOPE=user @assign expr https?://[^ ]+\.[a-zA-Z]{2,4} SCOPE=user @regex str=@@str expr=expr type=e Still getting M I really have no idea what I am doing. I have never worked with regex before. I can see where this would identify the actual URL string, but I am unsure as to how to rewrite the file to add the a href="" and the appending target=_blank and then the actual text of the link and to wind up with /a at the end. I started trying to use @replace and other various metatags associated with string variables, now I have not a clue. Anyway, maybe I need to do a bit of reading and experimenting before I go on... Ok try this [ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ] This says 1. starts with [space]http 2. has 1 to many non spaces chars 3. ends with . and 2 to 4 chars with space after that Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:52 AM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone +612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Title: RE: Witango-Talk: Auto a href Ok test this taf out Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:34 AM To: witango-talk@witango.com Subject: RE: Witango-Talk: Auto a href Tried this... @assign str @arg text SCOPE=user @assign expr https?://[^ ]+\.[a-zA-Z]{2,4} SCOPE=user @regex str=@@str expr=expr type=e Still getting M I really have no idea what I am doing. I have never worked with regex before. I can see where this would identify the actual URL string, but I am unsure as to how to rewrite the file to add the a href="" and the appending target=_blank and then the actual text of the link and to wind up with /a at the end. I started trying to use @replace and other various metatags associated with string variables, now I have not a clue. Anyway, maybe I need to do a bit of reading and experimenting before I go on... Ok try this [ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ] This says 1. starts with [space]http 2. has 1 to many non spaces chars 3. ends with . and 2 to 4 chars with space after that Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:52 AM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone +612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf regex_href.taf Description: Binary data TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
Title: Re: Witango-Talk: Auto a href Mac witango 5.065: http://ridge3.imagineworks.com/dev/regex_href.taf On 2/18/05 10:24 AM, Ben Johansen [EMAIL PROTECTED] wrote: Ok test this taf out TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Title: RE: Witango-Talk: Auto a href Okay, I got that to work. I understand that it is finding the string, showing the number of characters before the string and the length of the string, correct? What would be next to append the a href and the target-_blank and /a? Ok test this taf out Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:34 AM To: witango-talk@witango.com Subject: RE: Witango-Talk: Auto a href Tried this... @assign str @arg text SCOPE=user @assign expr https?://[^ ]+\.[a-zA-Z]{2,4} SCOPE=user @regex str=@@str expr=expr type=e Still getting M I really have no idea what I am doing. I have never worked with regex before. I can see where this would identify the actual URL string, but I am unsure as to how to rewrite the file to add the a href="" and the appending target=_blank and then the actual text of the link and to wind up with /a at the end. I started trying to use @replace and other various metatags associated with string variables, now I have not a clue. Anyway, maybe I need to do a bit of reading and experimenting before I go on... Ok try this [ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ] This says 1. starts with [space]http 2. has 1 to many non spaces chars 3. ends with . and 2 to 4 chars with space after that Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:52 AM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone +612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf Content-Type: application/octet-stream; name=regex_href.taf Content-Disposition: attachment; filename=regex_href.taf Attachment converted: MediaBlitz2:regex_href.taf (/) (1A63) TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
Title: Re: Witango-Talk: Auto a href Can someone post this on a public windows box? On 2/18/05 10:24 AM, Ben Johansen [EMAIL PROTECTED] wrote: Ok test this taf out TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Title: Re: Witango-Talk: Auto a href Ok http://www.pcforge.com/regex_href.taf Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: Roland Dumas [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 12:06 PM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Can someone post this on a public windows box? On 2/18/05 10:24 AM, Ben Johansen [EMAIL PROTECTED] wrote: Ok test this taf out TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Title: RE: Witango-Talk: Auto a href Sounds like a good step to take ;-) Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 11:09 AM To: witango-talk@witango.com Subject: RE: Witango-Talk: Auto a href Okay, I got that to work. I understand that it is finding the string, showing the number of characters before the string and the length of the string, correct? What would be next to append the a href and the target-_blank and /a? Ok test this taf out Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:34 AM To: witango-talk@witango.com Subject: RE: Witango-Talk: Auto a href Tried this... @assign str @arg text SCOPE=user @assign expr https?://[^ ]+\.[a-zA-Z]{2,4} SCOPE=user @regex str=@@str expr=expr type=e Still getting M I really have no idea what I am doing. I have never worked with regex before. I can see where this would identify the actual URL string, but I am unsure as to how to rewrite the file to add the a href="" and the appending target=_blank and then the actual text of the link and to wind up with /a at the end. I started trying to use @replace and other various metatags associated with string variables, now I have not a clue. Anyway, maybe I need to do a bit of reading and experimenting before I go on... Ok try this [ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ] This says 1. starts with [space]http 2. has 1 to many non spaces chars 3. ends with . and 2 to 4 chars with space after that Ben Johansen - http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:52 AM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone +612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf Content-Type: application/octet-stream; name=regex_href.taf Content-Disposition: attachment; filename=regex_href.taf Attachment converted: MediaBlitz2:regex_href.taf (/) (1A63) TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
Title: Re: Witango-Talk: Auto a href Youd use the @replace, using the captured string like this If your whole string is @@request$string If you put the @regex into a variable, it would be an array, say its called @@request$my_stuff @ASSIGN request$my_stuff value='@REGEX EXPR=[ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ] STR=@ARG string TYPE=E' @REPLACE STR=@ARG string FINDSTR=@@request$my_stuff[1,1] REPLACESTR= A HREF="">@DQ@@request$my_stuff[1,1]@DQ target=_blank@@request$my_stuff[1,1]/A encoding=none May be a simpler way, but thats what comes to mind. BTW, this regex _expression_ will only detect the first URL in a string. http://ridge3.imagineworks.com/dev/regex_href2.taf (in this case the Mac defect isnt material, because the initial position and string lengths arent used) On 2/18/05 10:09 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Okay, I got that to work. I understand that it is finding the string, showing the number of characters before the string and the length of the string, correct? What would be next to append the a href and the target-_blank and /a? Ok test this taf out Ben Johansen - http://www.pcforge.com http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:34 AM To: witango-talk@witango.com Subject: RE: Witango-Talk: Auto a href Tried this... @assign str @arg text SCOPE=user @assign expr https?://[^ ]+\.[a-zA-Z]{2,4} SCOPE=user @regex str=@@str expr=expr type=e Still getting M I really have no idea what I am doing. I have never worked with regex before. I can see where this would identify the actual URL string, but I am unsure as to how to rewrite the file to add the a href="" and the appending target=_blank and then the actual text of the link and to wind up with /a at the end. I started trying to use @replace and other various metatags associated with string variables, now I have not a clue. Anyway, maybe I need to do a bit of reading and experimenting before I go on... Ok try this [ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ] This says 1. starts with [space]http 2. has 1 to many non spaces chars 3. ends with .. and 2 to 4 chars with space after that Ben Johansen - http://www.pcforge.com http://www.pcforge.com Authorized Witango MDaemon Reseller Available for Web App. Developement From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:52 AM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Okay, I am not a regex expert by any means, but I am trying to do something like this, @assign str @arg text SCOPE=user @assign expr http?://[^ ]* SCOPE=user @regex str=@@str expr=expr type=e but I keep getting a return of M regardless if I am typing anything with http:// in it or not. I think this is on the right track, just wondering where to go from here... Thanks! On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the _expression_ is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone + 612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf Content-Type: application/octet-stream; name=regex_href.taf Content-Disposition: attachment; filename=regex_href.taf Attachment converted: MediaBlitz2:regex_href.taf (/) (1A63) TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf - Roland Dumas Roberts Information Services 310 W. Bellevue Avenue San Mateo CA 94402 650-347-1373 415-412-9300 (cell) [EMAIL PROTECTED] SMS: http://new.se
Re: Witango-Talk: Auto a href
On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now> @assign request$expr http?://[^ ]*> @regex str=@@request$str expr=@@request$expr type=e> will return http://www.google.com/modules/default.taf Since the expression is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. x-tad-bigger /x-tad-biggerx-tad-biggerWITH IMAGINATION /x-tad-biggerx-tad-biggerPlanning, Implementation and Management of Web Applications /x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger160 Pacific Highway North Sydney NSW Australia 2060/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerphone +/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger612 9929 9229/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerfax +/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger612 9460 4770/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerweb -/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggeremail -/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger[EMAIL PROTECTED] /x-tad-bigger
Re: Witango-Talk: Auto a href
The example perl regex code was pretty nasty. However, it did feature the abililty to find any internet-related url that posted as text. If you were looking for only ftp or http url's, it should be pretty easy to process text using the related http or ftp portions of that regex code. Of course, if you were looking for anyting that may be potentially used as a link , regardless of the type of service it was requesting, you might be a bit sorry. Just my two bits... Cheers, Jonah Simpson PS-Http regex (according to that monstrous block of jumble) = (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+) ){3}))(?::(?:\d+))?)(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F \d]{2}))|[;:@=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ 2}))|[;:@=])*))*)(?:\?(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ 2}))|[;:@=])*))?)?) PSPS-ftp regex (according to that monstrous block of jumble) = (?:ftp://(?:(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(? :%[a-fA-F\d]{2}))|[;?=])*)(?::(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a- fA-F\d]{2}))|[;?=])*))?@)?(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|- )*[a-zA-Z\d])?)\.)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(? :\d+)(?:\.(?:\d+)){3}))(?::(?:\d+))?))(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+! *'(),]|(?:%[a-fA-F\d]{2}))|[?:@=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'() ,]|(?:%[a-fA-F\d]{2})) On Thu, 17 Feb 2005 18:59:52 +1100, Jason Schulz [EMAIL PROTECTED] wrote: On a more useful note that my previous: @assign request$str visit http://www.google.com/modules/default.taf now @assign request$expr http?://[^ ]* @regex str=@@request$str expr=@@request$expr type=e will return http://www.google.com/modules/default.taf Since the expression is looking for the first space to terminate the url, it will include any punctuation (think url at end of sentence, the full stop will be included) and if the url spans multiple lines, the line returns will also be included. J. On 16/02/2005, at 11:39 PM, [EMAIL PROTECTED] wrote: The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. WITH IMAGINATION Planning, Implementation and Management of Web Applications 160 Pacific Highway North Sydney NSW Australia 2060 phone + 612 9929 9229 fax + 612 9460 4770 web - www.wi.com.au email - [EMAIL PROTECTED] TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
Ok, I'm regex-ignorant and not willing to substitute the manual for my traditional single malt night cap. So spell it out. If I want to process a variable request$text_block such that any http URLs in it turn into hyperlinks, what's the full expression? On 2/17/05 1:33 AM, Jonah Simpson [EMAIL PROTECTED] wrote: The example perl regex code was pretty nasty. However, it did feature the abililty to find any internet-related url that posted as text. If you were looking for only ftp or http url's, it should be pretty easy to process text using the related http or ftp portions of that regex code. Of course, if you were looking for anyting that may be potentially used as a link , regardless of the type of service it was requesting, you might be a bit sorry. Just my two bits... Cheers, Jonah Simpson PS-Http regex (according to that monstrous block of jumble) = (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+) ){3}))(?::(?:\d+))?)(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F \d]{2}))|[;:@=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ 2}))|[;:@=])*))*)(?:\?(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ 2}))|[;:@=])*))?)?) TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
Anyone else tried this? Archives? Do you have a link? Think this came up once before. Worth a look through the archives. The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. Tricky. On 2/15/05 9:04 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I got one that is bugging me to no end... WiTango 2000 I have a forum I built. I have noticed on other forums that if you type in a URL like so... http://test.com It automatically creates the link for you in the text that is returned. I was wondering if anyone has tried this in Witango. I have been fooling around with the @replace tag and cannot wrap my brain around it. In other words (within a block of text), if someone types... http://test.com Have it auto linked so the text is replaced with... a href=test.com target=_blankhttp://test.com/a Not sure if this will display properly or not, but will give it a try. Thanks for any help or a point in the right direction. TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf - Roland Dumas Roberts Information Services 310 W. Bellevue Avenue San Mateo CA 94402 650-347-1373 415-412-9300 (cell) [EMAIL PROTECTED] SMS: http://new.servqual.com/html/sms.tml TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
Take a look at the Open source mail client Tunderbird... I bet theres some code in there that does a regex or something to find urls and you could probably steal the regex. I could be wrong and Thunderbird doesn't use anything like a regex and it would be impossible to figure out how that mail client takes plain text emails and turns URLS it finds into links for someone not familiar with the code. /John [EMAIL PROTECTED] wrote: Anyone else tried this? Archives? Do you have a link? Think this came up once before. Worth a look through the archives. The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. Tricky. On 2/15/05 9:04 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I got one that is bugging me to no end... WiTango 2000 I have a forum I built. I have noticed on other forums that if you type in a URL like so... http://test.com It automatically creates the link for you in the text that is returned. I was wondering if anyone has tried this in Witango. I have been fooling around with the @replace tag and cannot wrap my brain around it. In other words (within a block of text), if someone types... http://test.com Have it auto linked so the text is replaced with... a href=test.com target=_blankhttp://test.com/a Not sure if this will display properly or not, but will give it a try. Thanks for any help or a point in the right direction. TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf - Roland Dumas Roberts Information Services 310 W. Bellevue Avenue San Mateo CA 94402 650-347-1373 415-412-9300 (cell) [EMAIL PROTECTED] SMS: http://new.servqual.com/html/sms.tml TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
I found the expression below at http://www.foad.org/~abigail/Perl/url3.regex You can read the story of it at http://www.foad.org/~abigail/Perl/url2.html. I haven't tested it, because I think it's pathological enough to get posted as is! J. Think this came up once before. Worth a look through the archives. The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. Tricky. (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+) ){3}))(?::(?:\d+))?)(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F \d]{2}))|[;:@=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ 2}))|[;:@=])*))*)(?:\?(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[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(),]|(?:%[a-fA-F \d]{2}))*))(?:(?:(?:%0[Aa])?(?:%20)*)\+(?:(?:%0[Aa])?(?:%20)*)(?:(?:(? :(?:(?:[a-zA-Z\d]|%(?:3\d|[46][a-fA-F\d]|[57][Aa\d]))|(?:%20))+|(?:OID |oid)\.(?:(?:\d+)(?:\.(?:\d+))*))(?:(?:%0[Aa])?(?:%20)*)=(?:(?:%0[Aa]) ?(?:%20)*))?(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))*)))*)(?:( ?:(?:(?:%0[Aa])?(?:%20)*)(?:[;,])(?:(?:%0[Aa])?(?:%20)*))(?:(?:(?:(?:( ?:(?:[a-zA-Z\d]|%(?:3\d|[46][a-fA-F\d]|[57][Aa\d]))|(?:%20))+|(?:OID|o id)\.(?:(?:\d+)(?:\.(?:\d+))*))(?:(?:%0[Aa])?(?:%20)*)=(?:(?:%0[Aa])?( ?:%20)*))?(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))*))(?:(?:(?: %0[Aa])?(?:%20)*)\+(?:(?:%0[Aa])?(?:%20)*)(?:(?:(?:(?:(?:[a-zA-Z\d]|%( ?:3\d|[46][a-fA-F\d]|[57][Aa\d]))|(?:%20))+|(?:OID|oid)\.(?:(?:\d+)(?: \.(?:\d+))*))(?:(?:%0[Aa])?(?:%20)*)=(?:(?:%0[Aa])?(?:%20)*))?(?:(?:[a -zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))*)))*))*(?:(?:(?:%0[Aa])?(?:%2 0)*)(?:[;,])(?:(?:%0[Aa])?(?:%20)*))?)(?:\?(?:(?:(?:(?:[a-zA-Z\d$\-_.+
Re: Witango-Talk: Auto a href
Regextastic! From the story, The pseudo-BNF is pretty straightforward... Yes, the 2+ page context free grammar that this monstrous regex represents is indeed straightforward. Bwahahahahahahaha! Jonah Simpson On Thu, 17 Feb 2005 10:32:43 +1100, Jason Schulz [EMAIL PROTECTED] wrote: I found the expression below at http://www.foad.org/~abigail/Perl/url3.regex You can read the story of it at http://www.foad.org/~abigail/Perl/url2.html. I haven't tested it, because I think it's pathological enough to get posted as is! J. Think this came up once before. Worth a look through the archives. The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. Tricky. (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+) ){3}))(?::(?:\d+))?)(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F \d]{2}))|[;:@=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ 2}))|[;:@=])*))*)(?:\?(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ 2}))|[;:@=])*))?)?)|(?:ftp://(?:(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(? :%[a-fA-F\d]{2}))|[;?=])*)(?::(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a- fA-F\d]{2}))|[;?=])*))?@)?(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|- )*[a-zA-Z\d])?)\.)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(? :\d+)(?:\.(?:\d+)){3}))(?::(?:\d+))?))(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+! *'(),]|(?:%[a-fA-F\d]{2}))|[?:@=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'() ,]|(?:%[a-fA-F\d]{2}))|[?:@=])*))*)(?:;type=[AIDaid])?)?)|(?:news:(?: (?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))|[;/?:=])+@(?:(?:( ?:(?:[a-zA-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ango-Talk: Auto a href
Which is why I use JavaScript for all of my regular expressions, it's closer to the perl's regex so most perl regexes work with it, it's well documented, and witango can execute server side. - Original Message - From: Customer Support [EMAIL PROTECTED] To: witango-talk@witango.com Sent: Wednesday, 16 February, 2005 23:50 Subject: Re: Witango-Talk: Auto a href Witango uses a POSIX regex engine which is standards based while Perl has its own standard for Regex and in its latest release does not even call them regex any more but just plain old rules. If a regex works with sed then it will work with witango as they use the same library. If you want to use regex in your apps get a hold of the book Mastering Regular Expressions (If your an insomniac it is an excellent drug free cure). Witango Support ... deleted ... TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
RE: Witango-Talk: Auto a href
Yup, that's what I do, because perl regex is more of a standard, at least what I have found. The firewall I manage, has perl regex, I wanted to write a witango app to test the ones I do for the firewall and couldn't :-( Ben Johansen -Original Message- From: Anthony M. Humphreys [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 11:21 PM To: witango-talk@witango.com Subject: Re: Witango-Talk: Auto a href Which is why I use JavaScript for all of my regular expressions, it's closer to the perl's regex so most perl regexes work with it, it's well documented, and witango can execute server side. - Original Message - From: Customer Support [EMAIL PROTECTED] To: witango-talk@witango.com Sent: Wednesday, 16 February, 2005 23:50 Subject: Re: Witango-Talk: Auto a href Witango uses a POSIX regex engine which is standards based while Perl has its own standard for Regex and in its latest release does not even call them regex any more but just plain old rules. If a regex works with sed then it will work with witango as they use the same library. If you want to use regex in your apps get a hold of the book Mastering Regular Expressions (If your an insomniac it is an excellent drug free cure). Witango Support ... deleted ... TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Re: Witango-Talk: Auto a href
Think this came up once before. Worth a look through the archives. The challenge is to find the string that represents an URL, which begins with http:// and ends with the first space after that. Tricky. On 2/15/05 9:04 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I got one that is bugging me to no end... WiTango 2000 I have a forum I built. I have noticed on other forums that if you type in a URL like so... http://test.com It automatically creates the link for you in the text that is returned. I was wondering if anyone has tried this in Witango. I have been fooling around with the @replace tag and cannot wrap my brain around it. In other words (within a block of text), if someone types... http://test.com Have it auto linked so the text is replaced with... a href=test.com target=_blankhttp://test.com/a Not sure if this will display properly or not, but will give it a try. Thanks for any help or a point in the right direction. TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf - Roland Dumas Roberts Information Services 310 W. Bellevue Avenue San Mateo CA 94402 650-347-1373 415-412-9300 (cell) [EMAIL PROTECTED] SMS: http://new.servqual.com/html/sms.tml TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf