Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Badguy13 Badguy13 is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 399
Rep Power: 14
Badguy13 mempunyai hidup yang Normal
Default [ASk] tentang regex aka Regular expression, buat yang bisa help pls T_T

jadi gin saya ada problem, yang mesti pake regex ataw regular expression, nah ceritanya ada log file




Code:

127.0.0.1 - - [25/Nov/2008:16:56:10 +0700] "GET /phpMyAdmin/themes/original/img/b_export.png HTTP/1.1" 200 313 "http://localhost/phpMyAdmin/phpmyadmin.css.php?token=094e691a16d64e0d7b8b760ed 459f89c&js_frame=right&nocache=3634557052" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.4"

trus yang diminta dari log file itu di parsing biar keluarannya kayak gini,




Code:

2008-11-25 /phpMyAdmin/themes/original/img/b_export.png 1

yang saya tahu saya mesti split setelah "GET sampai " 200



sama rubah format 25/Nov/2008 menjadi 2008-11-25 ada yang bisa bantu ini?? terima kasi sebelumnya.



Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 02:30 AM.


no new posts