Re: Find some text characters

2017-07-20 Thread Jonathan Lynch via use-livecode
Using ";" as the itemdel - makes sense. I also realized both split and filter could used for this. None of these beat regex for brevity, though. Sent from my iPhone > On Jul 20, 2017, at 11:06 AM, Bob Sneidar via use-livecode > wrote: > > of if char 3 to -1 of

Re: Find some text characters

2017-07-20 Thread Bob Sneidar via use-livecode
of if char 3 to -1 of tItem > Bob S > On Jul 17, 2017, at 14:59 , Jonathan Lynch via use-livecode > wrote: > > If the number of chars in tItem = 8 then... ___ use-livecode mailing list

Re: Find some text characters

2017-07-17 Thread Thierry Douez via use-livecode
2017-07-18 6:31 GMT+02:00 Peter Bogdanoff via use-livecode < use-livecode@lists.runrev.com>: > Thierry, I ended up using your first Regex example—works great! > > It is very good to know about \p{} matches—everything from Arabic to Yi. That may come in handy later. > > Thanks, > > Peter > >

Re: Find some text characters

2017-07-17 Thread Peter Bogdanoff via use-livecode
Thierry, I ended up using your first Regex example—works great! It is very good to know about \p{} matches—everything from Arabic to Yi. That may come in handy later. Thanks, Peter > On Jul 17, 2017, at 8:54 PM, Thierry Douez via use-livecode > wrote: > >

Re: Find some text characters

2017-07-17 Thread Thierry Douez via use-livecode
2017-07-18 3:53 GMT+02:00 Thierry Douez : > >> I want to know if this data contains Chinese characters >> >> Thanks for suggestions! >> >> Peter Bogdanoff >> >> > ​Hi Peter, > ​Ok, back after my second morning coffee :) A better way to check for Chinese code points would be

Re: Find some text characters

2017-07-17 Thread Thierry Douez via use-livecode
2017-07-17 23:40 GMT+02:00 Peter Bogdanoff via use-livecode < use-livecode@lists.runrev.com>: > Is there a easy way to do this?: > > Given this htmlText that may contain Chinese characters and/or some > horizontal tabs— > > > > I want to know if this data contains Chinese characters, that is an

Re: Find some text characters

2017-07-17 Thread Jonathan Lynch via use-livecode
Another way... just playing around Replace tab with empty in tstring Replace ";" with empty in tstring Replace "#" with empty in tstring Replace "&" with linefeed in tstring Repeat for each line tLine in tstring If the number of chars in tLine = 5 then Put tLine and linefeed after tList End if

Re: Find some text characters

2017-07-17 Thread Jonathan Lynch via use-livecode
Another way, just for fun Put empty into tnums Repeat for each char tchar in tstring If isnumber(tchar) = true then Put tchar after tnums Else if tnums <> empty then If the number of chars in tnums = 5 then Put tnums & linefeed after tnumlist End if Put empty into tnums End if End repeat

Re: Find some text characters

2017-07-17 Thread dunbarx via use-livecode
This cries out for regex. Thierry? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Find-some-text-characters-tp4717138p4717143.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode

Re: Find some text characters

2017-07-17 Thread Jonathan Lynch via use-livecode
Could replace tab with empty first, if the tabs do not matter in the final product I imagine LC provides many ways to do this :) Sent from my iPhone > On Jul 17, 2017, at 6:20 PM, Niggemann, Bernd via use-livecode > wrote: > > > Given this htmlText that may

Re: Find some text characters

2017-07-17 Thread Niggemann, Bernd via use-livecode
Given this htmlText that may contain Chinese characters and/or some horizontal tabs— I want to know if this data contains Chinese characters, that is an entity with 5 numbers between the “#” and the “;” according to google-translate this means "bold and strong" maybe this is a way?

Re: Find some text characters

2017-07-17 Thread Jonathan Lynch via use-livecode
If the number of chars in tItem = 8 then... You always have three extra chars, so that should be right. If you need an itemdelimiter, use "&" and check if the number of chars in each item = 7 Sent from my iPhone > On Jul 17, 2017, at 5:40 PM, Peter Bogdanoff via use-livecode >