Re: including . in a pattern match
- From: keithw@xxxxxxxxxxxxxxxxx (Keith Worthington)
- Date: Mon, 30 Jan 2006 13:39:38 -0500
On Mon, 30 Jan 2006 13:26:42 -0500, Chas Owens wrote
> On 1/30/06, Keith Worthington <keithw@xxxxxxxxxxxxxxxxx> wrote:
> snip
> > Well, the answer was right in fromt of me. The delimiter pattern is
> > matching the first hyphen and the integer pattern is matching the
> > second hyphen as a negative sign. Arrrgh!
> >
> > The Regex::Dommon::Number documentation doesn't indicate a way to
> > match only numbers without a sign. I am thinking I will just lose
> > the - as part of the delimiter and let the integer pattern take care
> > of it. A bit messy but it will work. If anyone can think of a
> > better idea I would appreciate your time in
> > sharing it.
> >
> > Kind Regards,
> > Keith
>
> This may motivate me to hack on that module to add -unsigned and
> -negative options.
Obviously that would benefit someone in my situation that really doesn't want to
allow negative numbers. I think that hacking a module is well beyound me for
the next couple of months though. ;-)
Thanks for all the help. With the exception of that one delimiter issue my code
looks pretty good. Functionality is okay as well. I am going to take what you
have taught me and rewrite my script during the next phase of my project.
Kind Regards,
Keith
.
- Follow-Ups:
- Re: including . in a pattern match
- From: Chas Owens
- Re: including . in a pattern match
- References:
- including . in a pattern match
- From: Keith Worthington
- Re: including . in a pattern match
- From: Chas Owens
- Re: including . in a pattern match
- From: Chas Owens
- Re: including . in a pattern match
- From: Keith Worthington
- Re: including . in a pattern match
- From: Chas Owens
- Re: including . in a pattern match
- From: Keith Worthington
- Re: including . in a pattern match
- From: Keith Worthington
- Re: including . in a pattern match
- From: Chas Owens
- including . in a pattern match
- Prev by Date: Re: including . in a pattern match
- Next by Date: Math Question
- Previous by thread: Re: including . in a pattern match
- Next by thread: Re: including . in a pattern match
- Index(es):
Relevant Pages
|
|