Re: [WebDNA] GREP Question

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102318
interpreted = N
texte = Hi It's kind of a one off thing so I'll probably do it in BBEdit but this is exactly what I need, thanks very much, it's saved me a mountain of work. Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig ======================================== On 1 Apr 2009, at 18:54, Tom Duke wrote: > Steve > > I think the following should work > > [grep search=([^<]*)&replace=

\1

] > blah blah [/grep] > > > - Tom > > > > On 4/1/09, Steve Craig wrote: >> Hi all >> >> Sorry if this is an easy thing, I don't really use grep that often so >> not sure of the syntax. >> >> I have a database from an old CMS that I need to convert to use in a >> new CMS. In the database there is a field called CONTENT which >> contains the output from FCKEditor, ie it is html code. In the code >> the old CMS specified headings as... >> >> Some text here >> >> and in the new one I need it to be... >> >>

Some text here

>> >> Is this possible in grep keeping in mind there may be many different >> spans in the field but all I am interested in is the ones exactly >> like >> >> >> Hope this is clear and thanks for any help. >> >> Cheers >> ======================================== >> Steve Craig - Asylum Interactive Ltd >> Tel +44 1330 860550 Fax +44 1330 860880 >> ======================================== >> http://www.asylumweb.com >> Email: steve@asylumweb.com >> Skype: s.craig - iChat: steve.craig >> ======================================== >> >> >> >> >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> > > > -- > ============================================== > Digital Revolutionaries > Shamrock Chambers > 1-2 Eustace Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: ++ 353 1 440 3907 > [f]: ++ 353 1 443 0720 > [e]: > [w]: > ============================================== > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] GREP question (Stuart Tremain 2010)
  2. Re: [WebDNA] GREP question (Tom Duke 2010)
  3. [WebDNA] GREP question (Stuart Tremain 2010)
  4. Re: [WebDNA] grep question (Kenneth Grome 2009)
  5. Re: [WebDNA] grep question (Stuart Tremain 2009)
  6. Re: [WebDNA] grep question (Matthew Bohne 2009)
  7. Re: [WebDNA] grep question (Kenneth Grome 2009)
  8. Re: [WebDNA] grep question (Matthew Bohne 2009)
  9. Re: [WebDNA] grep question (Kenneth Grome 2009)
  10. Re: [WebDNA] grep question (Matthew Bohne 2009)
  11. Re: [WebDNA] grep question (William DeVaul 2009)
  12. Re: [WebDNA] grep question (Stuart Tremain 2009)
  13. [WebDNA] grep question (Kenneth Grome 2009)
  14. Re: [WebDNA] GREP Question (Steve Craig 2009)
  15. Re: [WebDNA] GREP Question (Tom Duke 2009)
  16. [WebDNA] GREP Question (Steve Craig 2009)
Hi It's kind of a one off thing so I'll probably do it in BBEdit but this is exactly what I need, thanks very much, it's saved me a mountain of work. Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig ======================================== On 1 Apr 2009, at 18:54, Tom Duke wrote: > Steve > > I think the following should work > > [grep search=([^<]*)&replace=

\1

] > blah blah [/grep] > > > - Tom > > > > On 4/1/09, Steve Craig wrote: >> Hi all >> >> Sorry if this is an easy thing, I don't really use grep that often so >> not sure of the syntax. >> >> I have a database from an old CMS that I need to convert to use in a >> new CMS. In the database there is a field called CONTENT which >> contains the output from FCKEditor, ie it is html code. In the code >> the old CMS specified headings as... >> >> Some text here >> >> and in the new one I need it to be... >> >>

Some text here

>> >> Is this possible in grep keeping in mind there may be many different >> spans in the field but all I am interested in is the ones exactly >> like >> >> >> Hope this is clear and thanks for any help. >> >> Cheers >> ======================================== >> Steve Craig - Asylum Interactive Ltd >> Tel +44 1330 860550 Fax +44 1330 860880 >> ======================================== >> http://www.asylumweb.com >> Email: steve@asylumweb.com >> Skype: s.craig - iChat: steve.craig >> ======================================== >> >> >> >> >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> > > > -- > ============================================== > Digital Revolutionaries > Shamrock Chambers > 1-2 Eustace Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: ++ 353 1 440 3907 > [f]: ++ 353 1 443 0720 > [e]: > [w]: > ============================================== > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Steve Craig

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

are we ready to fix random sort? - Or did that already happen? (2000) listfiles-looking for slick solution (1997) (1997) Blacklisted (2002) RAM variables (1997) Alternating BGColors in Table Rows (1998) [UPPERCASE] (1997) FW: Virus Alert: FBI Finds 911 Virus Wiping Out Hard DrivesToday (2000) Summing fields (1997) number of found records in a