in reply to trying to match a greek phrase in a greek text

The webpage should actually have an explicit encoding mentioned. Something like "Content-Type: text/html; charset=ISO-8859-1". You will need to use the same encoding when you read the webpage into your script.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics