Ok. use simple: /\d+/
-----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von Jonathan Franks Gesendet: Freitag, 4. Mai 2007 15:04 An: [email protected] Betreff: [symfony-users] Re: AW: [symfony-users] Quick preg match query... Thanks! but that didn't work. Here are some examples.... d1234 e3456b d4n01 basically, I just want to match any string which contains at least one number . The number can be anywhere in the string. Thanks // Jonathan Franke Gordon wrote: > You will match: > Something1something > > But not > Something12something or Som1ething1something > > /[^\d]*\d[^\d]*/ > > I think this will be work ;) > > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von > Jonathan Franks > Gesendet: Freitag, 4. Mai 2007 14:05 > An: [email protected] > Betreff: [symfony-users] Quick preg match query... > > > Sorry! i'm useless at preg_match... > > all i want is a rule which matches any value which contains at least one > number. > > I tried this.... > > requirements: { stocknumber: /*[0-9]*/i } > > but it doesn't work. > > Any suggestions would be great! // jonathan > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
