Re: [WebDNA] GREP Question
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102318
interpreted = N
texte = HiIt'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 LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: 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:
HiIt'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 LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: 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)