Sabtu, 02 November 2013

PHP Indonesia - Facebook: [ASK] implementasi regex untuk filter sebuah kata ...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Start taking a college level music theory class today.

This beginner class is now accessible to aspiring musicians of all ages. Learn all of the basic concepts in an easy to follow manner.
From our sponsors
[ASK] implementasi regex untuk filter sebuah kata ...
Nov 3rd 2013, 05:26, by Nafian Wildana

Nafian Wildana 5:26am Nov 3
[ASK] implementasi regex untuk filter sebuah kata yang tidak boleh diinputkan gimana ya? misal: "saya ingin beli mobil baru", saya pake ".+mobil.+" , karena ada kata mobil ditengah jadi kalimat tersebut bisa terdeteksi, tapi pake cara ini gagal kalau ternyata "mobil saya baru" atau "saya suka mobil" karena mobil ada di awal sama akhir, maklum baru belajar regex, mohon bantuannya.. :)

Slamet Aprilianto 5:32am Nov 3
Mungkin pakai atau mas, |

Al Ghurahy 5:34am Nov 3
pake /mobil/ aja harusnya bs...

pake php ate js? (kl input bs lgsg pake js sih)

if(preg_match("/mobil/", $stringmu)) {
// handling kasus ketemu 'mobil'
}

Slamet Aprilianto 5:34am Nov 3
Eh bukannya kalo mau begitu tggl pake /mobil/ saja ya mas?

Nafian Wildana 5:38am Nov 3
eh iya, maaf sebelumnya, sebenernya ini mau ane implementasikan ke jsp, :D
ane tanya di forum java lama ndak dibales2, sekarang udah nemu kok, pake cara agan slamet, pake | , maklium masih belum familiar sama regex.. hehe
thx mas :)

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar