Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Strip quote marks on export? (Read 3727 times)
Paul Walters
Full Member
*
Offline



Posts: 267

Strip quote marks on export?
Jan 30th, 2010, 4:12am
 
I want to export $Text from several notes and strip all double and single quote marks from the exported text (leaving the notes' original intact).  Before I work up a regex routine (or perhaps sed using command line?), I'm checking to see if anyone has a successful approach.

Thanks, Paul
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Strip quote marks on export?
Reply #1 - Jan 30th, 2010, 4:56am
 
Although for a different purpose, this example, has some use of replacement with the command line. If you end up with long commands the technique shown for parking code in another note may be of use.

Don't forget that export setting can make the quotes into HTML entities if that's the problem you're trying to work around.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Paul Walters
Full Member
*
Offline



Posts: 267

Re: Strip quote marks on export?
Reply #2 - Jan 30th, 2010, 6:43am
 
Very nice guidance.  Thank you, Mark A.
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Strip quote marks on export?
Reply #3 - Jan 30th, 2010, 7:34am
 
Also worth noting that you can use single or double quotes.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print