Jump to content
php.lv forumi

Ka pareizi izveidot RegEx?


m8t

Recommended Posts

Tatad, stringi var but divos dazados veidos.

1 rinda:

8:00-9:00

X rindas:

8:00-9:00
10:00-11:00

 

Ka lai izveido RegEx'u ta, lai pie checkosanas viss butu kartiba, ja butu laiki, ka parauga augstak, bet mestu erroru, ja starp/aiz/pirms laikiem butu kadi nevajadzigi burti vai kads cits nevajadzigs kramins?

 

Ja savadak nevar, tad - ka lai izveido RegEx'u ta, lai iecheko, vai stringaa ir TIKAI cipari, minus zimite un kols?

Edited by m8t
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...