Being my first answer to SO, I can't lower Daniel's voice on javascript regex.
I know this is very late, but Daniel's answer is incorrect. This excludes the ancient characters below! This is important if you are working on a biblical app that explores ancient Greek words!
This is the correct regular expression for finding Greek and Copy in js:
/[\u0370-\u03FF]+/gm
http://unicode.org/charts/PDF/U0370.pdf
Excerpt from the chart:
0370 Ν° GREEK CAPITAL LETTER HETA β 2C75 ⱡ latin capital letter gender h
0371 Ν± GREEK SMALL LETTER HETA β 2C76 β±Ά latin small letter, half h
0372 Ν² GREEK CAPITAL LETTER ARCHAIC SAMPI
0373 Ν³ GREEK SMALL LETTER ARCHAIC SAMPI
EDIT: Craig indicates that Daniel's regular expression is true for OP. Although I cannot find where the OP indicates which Greek text he evaluates, I will concede that my answer is only valid for ancient texts.
While I am editing this, I also want to point out that no regular expression here matches Greek characters with such an accent that Perseus adds to his texts. Therefore, if you need to install http://www.perseus.tufts.edu/hopper/ or use any shared resources in the application, be careful with my regular expression.
jmbartho
source share