No subject


Tue Sep 1 18:21:41 MST 2009


what you are looking for, you could try \r both before and after the =
text (or whatever new line code your editor uses - \r works in jEdit) =
like this:

\r=D9=85=D8=AA=DB=8C\r
=20
John Duffy

-----Original Message-----
From: Peter von Kaehne [mailto:refdoc at gmx.net]=20
Sent: 26 October 2009 15:22
To: SWORD Developers' Collaboration Forum
Subject: [sword-devel] What is wrong with my regexes? Help appreciated

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

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

Original text

=D9=85=D8=AA=DB=8C

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

My regex

s/^=D9=85=D8=AA=DB=8C$/<title>$&<\/title>/;

finds all lines with the word at whatever in sentence position - instead =

of picking only lines with the single word =D9=85=D8=AA=DB=8C on the =
line.

What am I doing wrong?

Thanks

Peter

_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page




More information about the sword-devel mailing list