[sword-devel] What is wrong with my regexes? Help appreciated

Peter von Kaehne refdoc at gmx.net
Mon Oct 26 08:22:17 MST 2009


I am working on a lengthy Farsi text with the help of a perl script 
which has slowly grown into a great tool.

But some patterns refuse to budge and I am totally clueless what to do.

Original text

متی

starting at position 1 and ending the line with a return.

My regex

s/^متی$/<title>$&<\/title>/;

finds all lines with the word at whatever in sentence position - instead 
of picking only lines with the single word متی on the line.

What am I doing wrong?

Thanks

Peter



More information about the sword-devel mailing list