Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

93 users online



regular expression syntax

regular expression syntax

Currently viewing this thread: 1 (0 members and 1 guests)


vEr5e

vEr5e

Neverside Newbie
Status: Offline!

regular expression syntax

those regular expressions seem to be quite perplexing for me to understand it. but it is so frequently used and is also very important when using replace functions. i had read through the php documents on regular expressions syntax but i still don't understand how to use them very well.
is there a website which, or anyone who, can elaborate it in a more clearer and easier way to understand?
thanks

SlappyMcCracken

SlappyMcCracken

Status: Offline!

http://www.regular-expressions.info/

BigToach

BigToach

Neversidian
Status: Offline!

i unno if you saw this, but here it is anyways. www.php.net/pcre

___________________

Neverside Development Director
PHP Snippets
BigToach.com - IT WORKS, TOACHY!

vEr5e

vEr5e

Neverside Newbie
Status: Offline!

thanks for the sites...
hmm...i read some and i am quite confused with the difference between a + and an *
both loops something but when i look into the php.net/pcre,
it says * is 0 or more quantifier and + is 1 or more quantifier
what does it mean?

BigToach

BigToach

Neversidian
Status: Offline!

something like this
you wanna find at least 1 instance of something then you use + but if you wanna see if it is there or it isnt. here is an example
1.) find a string that starts with the letter a
/^a+/i
2.) find a string that starts with big and can have anything else after it
/big*/i (so it could be 'big', 'bigtoach' etc)

___________________

Neverside Development Director
PHP Snippets
BigToach.com - IT WORKS, TOACHY!

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0076 seconds.