GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




PossessiveProperNoun

Click to view RSS...
Author Trouble with regular expression
Posted Wednesday, May 7, 2008 - Post #21610
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 9:46 PM
Posts: 476, Visits: 3,234
The rule I'm trying to define is as follows: If the last character is an "s", "x" or "z" then use the value as is else append an "s".  E.g., Alice should become Alices, like in "Alices vader" and Charles should remain unchanged like in "Charles vader".

The original (EN) code is: <PossessiveProperNoun T="(s$)=$1'Sad.$)=$1's:" /> which returns Alices and Charles'.  But I wanted to get rid of the terminating apostroph.

I've tried following combinations but they don't deliver the expected result.

T="([sxz]$)=$1Sad[^sxz])=$1s:"               returns Aslice and Csharles
T="([sxz]$)=$1Sad.$)=$1s:"                      returns Alices (OK)  and Charless
T="(s$)=$1Sadx$)=$1Sadz$)=$1Sad.$)=$1s:" returns Alices (OK)  and Charless

Can anybody tell me what I'm doing wrong?

PS: I was unable to use script56.chm as documented but found information at http://msdn.microsoft.com/en-us/library/6wzad2b2.aspx


Threaded View

Expand / Collapse


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!