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:

Problems getting parameters passed into email. (1997) Multiple prices (1997) %@#*& back button!!! (1999) Lastautonumber (2005) Extended [ConvertChars] (1997) Can you do this??? and other stuff (1997) webdelivery.html and webna (1997) Problem with version 4 browsers (1998) MacActivity and PCS (1997) [WebDNA] Minor error correction (2008) Applescript, WebDNA, and PDF (1997) NT challenges default admin/admin password (2000) Smart caching problems with 2.1b3? (1997) off-topic - printinglib 68K (1997) show all problem (1997) Hairy Shipping Monster (2006) Re1000001: Setting up shop (1997) Emailer error codes (1999) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Security Issues and WebCommerce Solution (1997)