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

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

Login script (probably a simple error)
dbConfig.php
Code: <?
// Replace the variable values below
// with your specific dat

I am stumped
OK. Here is what I am trying to do. I have the conditions set, and if the conditions are met, I want

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

Error querying database.
I get the above error when trying to insert some values to a datatable.
Here's the code :

Firewall / visited websites logger
Hi. I have a firewall implementation and I want to log all the websites visited on the machine. S

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

how can we add data from dynamic fields to mysql db in php
i have a script which i found on the internet. i modify that script according to my needs. what is i

Gerenate tabel in Php
I whant to generate a tabel takeing data from database like this one so the results to be display on

the problem with str_replace
$str="hahahahahahahahahahahahahaha";
$nn=1;
$str=str_replace('ha','MyGod',$str,$nn);

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