Jump to content
moubik

fac provizii

Recommended Posts

Posted

(7:03:46 PM) commondude: acuma ai timp 2 minute pt mine?

(7:03:53 PM) commondude: ca am afalat ca nu iti plac clovnii

(7:03:55 PM) commondude: :))

(7:03:59 PM) commondude: aflat*

(7:04:05 PM) moubik: is fumat...

(7:04:18 PM) commondude: great

(7:04:29 PM) moubik: zi..

(7:05:06 PM) commondude: ceva cu regexp..dar incerc prima data sa vad, daca merge ..

(7:06:24 PM) commondude: cum ii pt numere si litere?

(7:06:37 PM) moubik: \d - numar

(7:06:43 PM) moubik: sau

(7:06:51 PM) moubik: [a-zA-Z0-9]

(7:06:53 PM) moubik: asa

(7:06:55 PM) moubik: ?

(7:06:57 PM) commondude: da

(7:09:52 PM) commondude: $replace = "/^#[a-zA-Z0-9];$/"; ?

(7:10:42 PM) moubik: care e intrebarea

(7:10:44 PM) moubik: ?

(7:10:49 PM) commondude: pai nu merge..

(7:10:57 PM) moubik: pai ce doresti sa identifici?

(7:11:02 PM) moubik: #abcd1234; ?

(7:11:02 PM) commondude: $text = file_get_contents("http://site.com/default.css");

$replace = "/^#[a-zA-Z0-9];$/";

if (preg_match($replace,$text)){

echo 'Gasit';

}else{

echo 'Ciuciu';

}

(7:11:04 PM) commondude: da

(7:11:16 PM) moubik: pai de ce ai negat # ?

(7:11:19 PM) moubik: ca ^ neaga

(7:11:29 PM) commondude: wtf

(7:11:30 PM) commondude: eu stiam

(7:11:34 PM) commondude: ca e inceputul

(7:11:36 PM) moubik: stai ca is fumat

(7:11:42 PM) moubik: ca poate ai dreptate :D

(7:11:52 PM) moubik: dar nu-ti trebe neaparat inceput

(7:11:55 PM) moubik: ca ala e incput de linie

(7:11:59 PM) moubik: si $ sfarsit

(7:12:03 PM) moubik: si poate mai ai spatiu dupa

(7:12:05 PM) moubik: si nu-l ia asa...

(7:12:06 PM) moubik: nu ?

(7:12:13 PM) commondude: da

(7:12:24 PM) moubik: 7incearca fara ^ si

(7:12:28 PM) moubik: &

(7:12:57 PM) commondude: flori

(7:13:07 PM) moubik: ce inseamna flori ?

(7:13:13 PM) commondude: nu merge..

(7:13:14 PM) commondude: :)

(7:13:27 PM) commondude: urasc regexp,si pe ia care le-au inventat

(7:13:28 PM) moubik: show the code

(7:13:31 PM) moubik: :)

(7:13:39 PM) commondude: $text = file_get_contents("http://site.com/default.css");

$replace = "/#[a-zA-Z0-9];/";

if (preg_match($replace,$text)){

echo 'Gasit';

}else{

echo 'Ciuciu';

}

(7:13:44 PM) moubik: ti-am dat fisieru ala in care testezi regexp ?

(7:13:49 PM) moubik: l-am facut eu la un moment dat

(7:13:52 PM) moubik: ca sa verific usor

(7:13:57 PM) commondude: nu

(7:14:01 PM) commondude: vezi acuma

(7:14:04 PM) commondude: aici

(7:14:08 PM) commondude: daca pot sa ii dai de cap

(7:14:11 PM) commondude: ~X(

(7:14:44 PM) moubik: :((

(7:14:47 PM) moubik: au schimbat documentatia

(7:15:05 PM) commondude: cine?unde?

(7:15:14 PM) moubik: php.net

(7:15:24 PM) commondude: http://de2.php.net/preg_match

(7:15:29 PM) commondude: acolo ma uit si eu

(7:15:47 PM) moubik: era in stanga

(7:15:52 PM) moubik: syntaxa

(7:17:03 PM) moubik: incearca

(7:17:12 PM) moubik: $replace = "/\#[a-zA-Z0-9];/";

(7:17:18 PM) moubik: eu is super fumat scuze

(7:17:58 PM) commondude: dream on ca nu merge

(7:18:05 PM) commondude: de asta le urasca

(7:18:09 PM) commondude: dureaza mult....

(7:19:07 PM) moubik: testeaza cu scriptu asta

(7:19:09 PM) moubik: regexurile

(7:19:10 PM) moubik: http://pastebin.com/f2acb3cb3

(7:19:13 PM) moubik: l-am scris eu

(7:19:19 PM) moubik: cu putin ajax ca sa re reincarce frumos

(7:19:27 PM) moubik: pune-l pe oricesite cu php

(7:20:58 PM) commondude: si exemplu

(7:21:02 PM) commondude: de folosire?

(7:21:02 PM) commondude: il pun

(7:21:17 PM) commondude: aaa

(7:21:19 PM) commondude: i got it

(7:33:04 PM) moubik: /\#[a-zA-Z0-9]*;/

(7:33:09 PM) moubik: merge

(7:33:20 PM) moubik: $rezultat[0][0]

(7:33:34 PM) commondude: :*:*:*:*:*:*:*:*:*:**

(7:33:40 PM) commondude: sa fi binecuvantat

(7:33:49 PM) moubik: cu mana stanga rulez

(7:33:53 PM) moubik: jointu :))

(7:34:09 PM) commondude: :P auzi da ce inseamna "*",inseamna "all"

(7:34:13 PM) commondude: ca na sa stiu pe viitor

(7:34:13 PM) moubik: cu dreapta am scris expresia

(7:34:35 PM) moubik: * = lungime de zero sau mai mult

(7:34:48 PM) moubik: + = lugime de 1 sau maimult

(7:35:07 PM) moubik: specificai multimea de caractere dar fara lungime

(7:35:12 PM) moubik: si cauta doar cu 2

(7:35:20 PM) commondude: dar nu inteleg,atunci care ii logica de ai pus in expresia asta aici "*"

(7:35:26 PM) moubik: lasa_ma sa-l rulez!!

(7:35:34 PM) commondude: ok ^<img src=^'>

(7:36:01 PM) moubik: gata

(7:36:02 PM) moubik: deci

(7:36:11 PM) moubik: [a-z] inseamna sa alegi caractere din multimea a-z

(7:36:16 PM) moubik: dar fara sa spui lungime

(7:36:17 PM) commondude: stiu aia

(7:36:28 PM) moubik: lungime e cu {si} sau * sau +

(7:36:45 PM) moubik: si am pus * ca sa fie lungime

(7:36:51 PM) moubik: daca vrei specifica culaorea

(7:36:56 PM) moubik: ca poate fi in mai multe modurie

(7:36:57 PM) moubik: gen

(7:37:00 PM) moubik: #ff00ff

(7:37:01 PM) moubik: sau

(7:37:03 PM) moubik: #abc

(7:37:05 PM) moubik: pot sa fac

(7:37:08 PM) moubik: gen

(7:37:16 PM) moubik: {6}

(7:37:22 PM) moubik: si iti ia ff00ff

(7:37:25 PM) moubik: de exemplu

(7:37:27 PM) moubik: intelegi ?

(7:37:57 PM) moubik: acum bat jointu

(7:38:04 PM) commondude: aaaaaaa da ma ce vaca

(7:38:06 PM) commondude: botanica

(7:38:07 PM) commondude: is

(7:38:09 PM) commondude: ai dreptate

(7:38:16 PM) commondude: lungimea

(7:38:18 PM) commondude: era problema

(7:38:21 PM) commondude: i got it

(7:38:36 PM) moubik: ce frumos a iesit jointu

(7:38:42 PM) moubik: hai ca tre sa-l fumez

(7:38:46 PM) moubik: pun discutia pe net :))

Posted
(11:29:05 AM) moubik: ai microfon ?

(11:29:08 AM) friend: nu

(11:29:09 AM) moubik: sugi

(11:29:13 AM) friend: pixelu'

(11:29:17 AM) moubik: fa rost de unu

(11:29:18 AM) moubik: :))

(11:29:36 AM) friend: pentru ?

(11:30:13 AM) moubik: microfon

(11:30:16 AM) moubik: ca sa vorbesti in el

(11:30:21 AM) moubik: sa te auda natiunea

(11:30:48 AM) friend: tu crezi ca eu vorbesc de nebun intr-o... smecherie de plastic care converteste sunete in semnal electric ?

(11:31:02 AM) moubik: =))

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.



×
×
  • Create New...