Curly Bracket Delimeters.


Posted on 16th Feb 2014 07:03 pm by admin

I'd always believed that the starting and ending delimeters in preg_ functions had to be the same character, but recently discovered that you can use the curly brackets.

Example:
Code: [Select]if(preg_match('{[0-9]}', $input)) {
I was just wondering if there was any disadvantage/advantage of using this method?

No comments posted yet

Your Answer:

Login to answer
195 Like 29 Dislike
Previous forums Next forums
Other forums

Using two $_POST Function / Switch () statements, second does not work.
Hi all. I’m new to php and am having a problem getting $_POST Function / switch () to work. I

How do I send data using an html link
Hi

If I have
<a href="main_file.php">

How do I send data t

Exporting new records
Trying to figure out the best way to set this up.

People register my site.

Their prof

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

ldap connection
We are using ldap to get user information from the domain controller. It was working before. Recentl

problem with query error
First Thanks to those who helped me on my previous posts, and the following code i'm using is not mi

Error when call dll from oracle
Hi all, please help me!

I have dll write C language, I want call it from oracle procedur

Unable to customise toolbar in FCK
asking for direction
I have 2 tables in my data, which are "post" and "event"
I won't make a summa

Insert data in Mysql and move to another page
I'm stuck with this simple problem. I need to insert data in Mysql and then hit submit and move to a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash