Constrain word delimiter to space only

Richard Gaskin ambassador at fourthworld.com
Sat Sep 17 17:56:29 EDT 2016


Sannyasin Brahmanathaswami wrote:

 > if you do this
 >
 > put "He said, " & quote & "LiveCode has a very supportive community."
 > & quote into tQuote
 > put word 3 of the quote
 >
 >
 > you get ""LiveCode has a very supportive community."
 >
 > is there a way to contrain the word delimiter to not include the
 > straight quote as a delimiter?
 >
 > from an editor's point of view, this has 8 words not 3
 >
 > He said, "LiveCode has a very supportive community."

The trueWord chunk type was added early in the v7 series to take 
advantage of the Unicode lib's parsing rules that account for quotes and 
punctuation.

e.g.:

   put trueWord 3 of tQuote

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list