[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sed question (Re: Debian 2.0: Checklist automated)



On Fri, 16 Jan 1998, Craig Sanders wrote:

> a regular expression such as the following:
>     s/\(.*\)/<A HREF="mailto:\1";>\1<\/A>/
> 
> should convert a string, like:
>     foo@bar.com
> into 
>     <A HREF="mailto:foo@bar.com";>foo@bar.com</A>

[ ok, I'm getting a bit off topic, so I'll take it to private e-mail after
  this ]

That would be fine if I had stored the email's separate in the database
(stupid me), but I didn't, and my seed works after the entire html query
is generate from postgresql.  So, I've got one long line like this:

<tr><td valign=top align=left>diff</td><td valign=top align=left>Dale
Scheetz <dwarf@polaris.net></td><td valign=top align=left><UL><LI>cmp
works on identical 

So I need to start after the second "align=left>" and stop before the next
</td>.  Is that sed-able.  Cool if it is, no biggie if it isn't.

Brandon (who thinks he just got an idea, using the @ and brackets)

-----
Brandon Mitchell <bhmit1@mail.wm.edu>   "We all know linux is great... it
PGP: finger -l bhmit1@cs.wm.edu          does infinite loops in 5 seconds"
Phone: (757) 221-4847                      --Linus Torvalds


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: