Thread: Regex examples
View Single Post
Old 02-18-2018, 02:19 PM   #552
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Maui View Post
Search

(\p{Greek}{1,})

Replace

<span class="greek">\1</span>
One minor tweak. I would recommend replacing with:

Code:
<span class="greek" lang="grc" xml:lang="grc">\1</span>
or whatever Greek you are using:

grc: Ancient Greek (to 1453)
el: Modern Greek (1453-)

You could see the list of lang codes here:

https://www.iana.org/assignments/lan...ubtag-registry

Side Note: Marking your HTML up with proper lang is helpful (Dictionary lookup, Spellchecking, Hyphenation, Search, [...]).
Tex2002ans is offline   Reply With Quote