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
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
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
>
>
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:
>
>
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
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
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
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
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
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
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?
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
>
12 matches
Mail list logo