On Wed, 20 Apr 2005 15:19:28 -0700, John W. Krahn wrote > Keith Worthington wrote: > > Hi All, > > Hello, > > > Here is my code so far. I am really getting frustrated with my > > inability to get this right. > > > > I didn't understand Chris' earlier suggestion about using > > defined but I tried using it anyway. > > > > I cannot seem to get the pattern match to properly handle > > a dimension that is just feet or just inches. > > > > I would really appreciate some pointers on this problem. > > Did you see the code I posted earlier? > > John
John, For some reason I didn't get your post until after I sent out my other desperate plea for help. Your post gave me the following two critical REs. (?:(\d+)')? (?:(\d+)")? Which I have since modified to /(?:([\d\.\s\-\/]+)')?\s*(?:([\d\.\s\-\/]+)")?/ I creep ever closer to a solution. :-) I will be posting against the original thread from now on per the list's gentle admonition. ;-) Kind Regards, Keith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>