Conversie eregi() in preg_match() [Rezolvat]

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Locked
User avatar
-BlacKodE-
Super moderator
Super moderator
Posts: 1183
Joined: 16 Nov 2013, 11:57
Detinator Steam: Da
SteamID: blackode
Reputatie: Super moderator
Membru Club eXtreamCS (1 luna)
Fost Membru Club eXtreamCS (5 apr - 5 mai - acces in club)
Location: Pascani
Has thanked: 16 times
Been thanked: 10 times

02 May 2019, 20:56

Are cineva idee cum pot converti codurile de genul acesta

^0000+[0-1]+[0-1]+[0-1]+[0-1]+0000+[0-1]+[0-1]+[0-1]+[0-1]+0000

^00000+[0-1]+[0-1]+[0-1]+00000+[0-1]+[0-1]+[0-1]+00000

^00+[0-1]+[0-1]+[0-1]+[0-1]+[0-1]+[0-1]+00

Sa mearga in preg_match.

Edit: Rezolvat intr-un final.

Eregi: ^00+[0-1]+[0-1]+[0-1]+[0-1]+[0-1]+[0-1]+00

Preg_match: /^00+[0-1]+[0-1]+[0-1]+[0-1]+[0-1]+[0-1]+00+$/
Locked

Return to “Discutii generale”

  • Information