Re: Using grep for organizing emails

2010-01-17 Thread maciek.schejbal
Hi Kendall,

here is the concrete example. I want to turn:

ann lkjlkjlkj tlkjl...@msn.com
Nlkjlkj  Teilkjea nlkj...@gmail.com
whoe...@me.com whoe...@me.com
Mr. Cashman c...@mac.com

into:
tlkjl...@msn.com, nlkj...@gmail.com, whoe...@me.com, c...@mac.com

and into:

tlkjl...@msn.com
nlkj...@gmail.com
whoe...@me.com
c...@mac.com

Many thanks,
Maciek



On Jan 15, 8:30 pm, Kendall Conrad angelw...@gmail.com wrote:
 It would be helpful to see an example of what you're working with.
 I'll assume it looks something like this,

 john sm...@email.com
 jan d...@other.com

 Grep: ^([^]+)([^]+)$
 Replace with: \1,\2

 That gets pretty close depending on the exact format you have to work
 from, and I'm also not sure what you want to end result to look like.
 If you could provide examples I could give a more precise solution.

 ~angelwatt

 On Jan 15, 1:36 pm, maciek.schejbal maciek.schej...@gmail.com
 wrote:

  Hi,

  I have a list of emails enclosed within  signs preceded by a name,
  usually in two or three word format. I need to extract those emails
  and place them in a comma-delimited document.

  Each entry is on a separate line, followed by the carriage return
  though I'm curious how to perform that extraction without separate
  lines present.

  Thanks for your help,
  Maciek
-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Re: Using grep for organizing emails

2010-01-17 Thread maciek.schejbal
Not sure my reply went through so I'm resending with better examples.

Kendall, I would like these lines:

Joel lkj joe...@gmail.com
lkj...@gmail.com lkj...@gmail.com
l...@aol.com
Mr.Gilbert Llkjlkj lkj...@fasny.org

to appear like this:

joe...@gmail.com, lkj...@gmail.com, l...@aol.com, lkj...@fasny.org

and afterwards like this:

joe...@gmail.com
lkj...@gmail.com
l...@aol.com
lkj...@fasny.org

Many thanks,
Maciek


On Jan 15, 8:30 pm, Kendall Conrad angelw...@gmail.com wrote:
 It would be helpful to see an example of what you're working with.
 I'll assume it looks something like this,

 john sm...@email.com
 jan d...@other.com

 Grep: ^([^]+)([^]+)$
 Replace with: \1,\2

 That gets pretty close depending on the exact format you have to work
 from, and I'm also not sure what you want to end result to look like.
 If you could provide examples I could give a more precise solution.

 ~angelwatt

 On Jan 15, 1:36 pm, maciek.schejbal maciek.schej...@gmail.com
 wrote:

  Hi,

  I have a list of emails enclosed within  signs preceded by a name,
  usually in two or three word format. I need to extract those emails
  and place them in a comma-delimited document.

  Each entry is on a separate line, followed by the carriage return
  though I'm curious how to perform that extraction without separate
  lines present.

  Thanks for your help,
  Maciek
-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Re: Using grep for organizing emails

2010-01-17 Thread Kendall Conrad
OK, my original idea should work pretty well for the second format
that you want, just change the replace with to \2. For the comma-
separated addresses on a single line use,

([^]+)([^]+)\r

for the regex, then

\2,

for the replace with. You'll of course need to delete the last command
from the result. That at least worked for me.

-Kendall

On Jan 17, 12:25 am, maciek.schejbal maciek.schej...@gmail.com
wrote:
 Kendall, I would like these lines:

 Joel lkj joe...@gmail.com
 lkj...@gmail.com lkj...@gmail.com
 l...@aol.com
 Mr.Gilbert Llkjlkj lkj...@fasny.org

 to appear like this:

 joe...@gmail.com, lkj...@gmail.com, l...@aol.com, lkj...@fasny.org

 and afterwards like this:

 joe...@gmail.com
 lkj...@gmail.com
 l...@aol.com
 lkj...@fasny.org

 Many thanks,
 Maciek

 On Jan 15, 8:30 pm, Kendall Conrad angelw...@gmail.com wrote:

  It would be helpful to see an example of what you're working with.
  I'll assume it looks something like this,

  john sm...@email.com
  jan d...@other.com

  Grep: ^([^]+)([^]+)$
  Replace with: \1,\2

  That gets pretty close depending on the exact format you have to work
  from, and I'm also not sure what you want to end result to look like.
  If you could provide examples I could give a more precise solution.

  ~angelwatt

  On Jan 15, 1:36 pm, maciek.schejbal maciek.schej...@gmail.com
  wrote:

   Hi,

   I have a list of emails enclosed within  signs preceded by a name,
   usually in two or three word format. I need to extract those emails
   and place them in a comma-delimited document.

   Each entry is on a separate line, followed by the carriage return
   though I'm curious how to perform that extraction without separate
   lines present.

   Thanks for your help,
   Maciek
-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Grep Help

2010-01-17 Thread Warren Michelsen
I need to search for a td/td tag set and everything in between, which may 
include line breaks but which must include an anchor.

td
a   href=http://URL.WILL.BE.HERE;Link 
Text here
/td
 
I need to find and replace this entire table column. (Replacing with  so as 
to delete.)

What's the Grep pattern to find this?

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Re: Grep Help

2010-01-17 Thread Kendall Conrad
This seems to work:

td([\s\S]*?a\s[\s\S]*?)/td

-Kendall

On Jan 17, 2:42 pm, Warren Michelsen wmichel...@gmail.com wrote:
 I need to search for a td/td tag set and everything in between, which may 
 include line breaks but which must include an anchor.

             td
                                     a   href=http://URL.WILL.BE.HERE;Link 
 Text here
                             /td

 I need to find and replace this entire table column. (Replacing with  so as 
 to delete.)

 What's the Grep pattern to find this?
-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Re: I'm new at this

2010-01-17 Thread James Taylor
cool

fortunately i don't have to deal much with Word html files these days :)

On Sun, Jan 17, 2010 at 7:22 PM, Kerri Hicks kerri.hi...@gmail.com wrote:
 On Sun, Jan 17, 2010 at 7:05 PM, James Taylor webh...@gmail.com wrote:
 Dreamweaver does a great job of cleaning up Word HTML  Inline CSS

 see

 http://stackoverflow.com/questions/1929011/what-is-the-best-way-to-get-clean-semantic-xhtml-from-ms-word-documents


 I also wrote a tutorial on migrating from Word HTML to valid HTML.
 It's a few years old, but the basics are the same.

 http://www.stg.brown.edu/edu/tips/word_to_html_with_bbedit_1.html

 --Kerri

 --
 You received this message because you are subscribed to the
 BBEdit Talk discussion group on Google Groups.
 To post to this group, send email to bbedit@googlegroups.com
 To unsubscribe from this group, send email to
 bbedit+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/bbedit?hl=en
 If you have a feature request or would like to report a problem,
 please email supp...@barebones.com rather than posting to the group.

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Re: Grep Help

2010-01-17 Thread Garth Fletcher

Warren Michelsen wrote:

I need to search for a td/td tag set and everything in between, which may 
include line breaks but which must include an anchor.



I use:

td(?s)(.+?)/td

 where:
  (?s) = search across end of lines
   .+? = non-greedy match to anything
--
Garth Fletcher

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.