HI all!
I have a few questions concerning using regex to find strings in Ancient Greek, but I think I will be able to solve most of them if I knew the way to find any string containing just Ancient Greek text in livecode. (something like [Α-Ωα-ω] will omit any accented character).
In plain English, how do I build, for example, the regex to find any Greek word of 5 chars, or any Greek word with first character Ἀ?
best,
Daniel
Find Greek characters using regex
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Find Greek characters using regex
Probably one of the best regex pages I've come across is this one.
Re: Find Greek characters using regex
I'll put it another way: Greek letter lambda (λ) is Unicode 955, hex U+03BB and in languages like python "\u03bb". how do you represent Unicode characters like lambda in regex expressions using livecode? and how do you set the range of characters to look for when searching for Unicode characters?
Re: Find Greek characters using regex
See this page for details:
http://www.pcre.org/original/doc/html/pcrepattern.html
You can use "\p{Greek}"
For the specific example, use "\x{03bb}"
http://www.pcre.org/original/doc/html/pcrepattern.html
You can use "\p{Greek}"
For the specific example, use "\x{03bb}"
Brian Milby
Script Tracker https://github.com/bwmilby/scriptTracker
Script Tracker https://github.com/bwmilby/scriptTracker
Re: Find Greek characters using regex
oh, that's great!. Almost all my questions answered in just one post! thanks bwmilby