aika Posted April 15, 2009 Report Share Posted April 15, 2009 varbūt kādam ir gatavs preg_matchs login name checkingam (lai būtu tikai latīņu burti un cipari - nekas vairāk)?? txs jau iepriekš! Quote Link to comment Share on other sites More sharing options...
aika Posted April 15, 2009 Author Report Share Posted April 15, 2009 varbūt kādam ir gatavs preg_matchs login name checkingam (lai būtu tikai latīņu burti un cipari - nekas vairāk)??txs jau iepriekš! pats atradu :) topiku dzēst neļauj, tapēc iepostēšu atbildi pats :) preg_match('/^[a-zA-Z0-9][\w]+[a-zA-Z0-9]$/',$login); Quote Link to comment Share on other sites More sharing options...
marcis Posted April 15, 2009 Report Share Posted April 15, 2009 Būtu pieticis arī ar "/^[A-Za-z0-9]+$/" Quote Link to comment Share on other sites More sharing options...
marrtins Posted April 15, 2009 Report Share Posted April 15, 2009 Būtu pieticis arī ar "/^[a-z0-9]+$/i" :) Quote Link to comment Share on other sites More sharing options...
bubu Posted April 15, 2009 Report Share Posted April 15, 2009 Būtu pieticis arī ar "/^[a-z\d]+$/i" :) Quote Link to comment Share on other sites More sharing options...
aika Posted April 15, 2009 Author Report Share Posted April 15, 2009 cik sapratu, manā piemērā ir atļauts arī _ Labi - bet vai kāds var paskaidrot sintaksi? Gribas saprast kas un ka! Quote Link to comment Share on other sites More sharing options...
marcis Posted April 15, 2009 Report Share Posted April 15, 2009 Man šis links likās noderīgs. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.