Re: [WebDNA] GREP Question

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102316
interpreted = N
texte = 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]: ============================================== 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)
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]: ============================================== Tom Duke

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:

ooops...WebCatalog [FoundItems] Problem - LONG - (1997) $Quit, $CloseDatabase corrections (1997) Cart doesn't interpret tag! (1997) I need a Smart-quote workaround (1999) WebCatalog for Postcards ? (1997) WebCat b13 CGI -shownext- (1997) Count regular expressions in a file (2007) Counting LineItems (2000) WebDNA 5 gets a mention .. (2003) creating a 60 fields database (1997) Database Advice (1996) Formatting dates stored in db (2003) WebCat2b15MacPlugin - showing [math] (1997) [OT]Applescript/.db (was:FTP to WebStar) (2001) WebCat Code and WebStar Search? (2000) Deleting Orders (1997) WebCat & Liststar ... & Rumpus, too! (1997) RE: SSL and WebCatalog (1997) Refering page (1998) Associative lookup style? + bit more (1997)