|
List Info
Thread: 4 numbers - 3 numbers
|
|
| 4 numbers - 3 numbers |
  United States |
2007-02-25 13:31:08 |
Hello,
I need to create a REGEX which accepts only:
xxxx-xxx
Where x are numbers.
Something like: 1600-131, 1000-095, etc.
Could someone, please, help me out?
Thanks,
Miguel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: 4 numbers - 3 numbers |
  United States |
2007-02-25 14:00:43 |
"/d-d/"
will do the trick
On Feb 25, 8:31 pm, "shapper" <mdmo... gmail.com> wrote:
> Hello,
>
> I need to create a REGEX which accepts only:
>
> xxxx-xxx
>
> Where x are numbers.
>
> Something like: 1600-131, 1000-095, etc.
>
> Could someone, please, help me out?
>
> Thanks,
>
> Miguel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: 4 numbers - 3 numbers |
  United States |
2007-02-25 16:07:24 |
I tried this but it does not work.
I used http://regexlib.com
/RETester.aspx to test it.
Thanks,
Miguel
On Feb 25, 8:00 pm, "Yorian"
<yorianbenja... hotmail.com> wrote:
> "/d-d/"
>
> will do the trick
>
> On Feb 25, 8:31 pm, "shapper" <mdmo... gmail.com> wrote:
>
> > Hello,
>
> > I need to create a REGEX which accepts only:
>
> > xxxx-xxx
>
> > Where x are numbers.
>
> > Something like: 1600-131, 1000-095, etc.
>
> > Could someone, please, help me out?
>
> > Thanks,
>
> > Miguel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: 4 numbers - 3 numbers |
  United States |
2007-02-26 10:17:05 |
Try "d-d" instead. The "/" at
the beginning and end of the
pattern is a language specific function, probably PHP.
On Feb 25, 3:07 pm, "shapper" <mdmo... gmail.com> wrote:
> I tried this but it does not work.
> I usedhttp://regexlib.c
om/RETester.aspxto test it.
>
> Thanks,
> Miguel
>
> On Feb 25, 8:00 pm, "Yorian"
<yorianbenja... hotmail.com> wrote:
>
> > "/d-d/"
>
> > will do the trick
>
> > On Feb 25, 8:31 pm, "shapper"
<mdmo... gmail.com> wrote:
>
> > > Hello,
>
> > > I need to create a REGEX which accepts only:
>
> > > xxxx-xxx
>
> > > Where x are numbers.
>
> > > Something like: 1600-131, 1000-095, etc.
>
> > > Could someone, please, help me out?
>
> > > Thanks,
>
> > > Miguel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: 4 numbers - 3 numbers |
  United States |
2007-02-27 13:10:06 |
On Feb 26, 8:17 am, "munged92" <munge... gmail.com> wrote:
> Try "d-d" instead. The
"/" at the beginning and end of the
> pattern is a language specific function, probably PHP.
>
the forward slashes in Yorian's post are delimiters to
separate the
regex pattern from potential modifiers.. so the OP's pattern
can be
actually like:
^d-d$
^ and $ anchors are usually necessary to avoid some
non-matching
strings like 12345-2344555
Regards,
Xicheng
> On Feb 25, 3:07 pm, "shapper" <mdmo... gmail.com> wrote:
>
>
> > I tried this but it does not work.
> > I usedhttp://regexl
ib.com/RETester.aspxtotest it.
>
> > Thanks,
> > Miguel
>
> > On Feb 25, 8:00 pm, "Yorian"
<yorianbenja... hotmail.com> wrote:
>
> > > "/d-d/"
>
> > > will do the trick
>
> > > On Feb 25, 8:31 pm, "shapper"
<mdmo... gmail.com> wrote:
>
> > > > Hello,
>
> > > > I need to create a REGEX which accepts
only:
>
> > > > xxxx-xxx
>
> > > > Where x are numbers.
>
> > > > Something like: 1600-131, 1000-095,
etc.
>
> > > > Could someone, please, help me out?
>
> > > > Thanks,
>
> > > > Miguel- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|
|
[1-5]
|
|