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)) {
Did you know?Explore Trending and Topic pages for more stories like this.
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

value not going in data base
hello friends....
i am having a working javascript....when i am selecting any

Upload file and add HTML
Hey everyone,

I have a client has meeting agendas and minutes that should be posted online. I

User information
Hi All,
By using t-code SUIM we get all the user details,if suppose we donot have permission t

Why is this query failing?
Why is this not working?
$query = "SELECT * FROM `users` WHERE `userid` = " . $USERID

Dynamic memory problem
Hey,

At the beginning of my code, I have this line:

Shape* gShape = 0;

admin with my register system?
Hey i wana make it so i can make a admin level on my register system , I'm kinda new to php to im no

ScriptManager History and Opera Issue
I am having an issue in opera with the ScriptManager. I have a ScriptManager on a page with history

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

foreach iterator
Hi Guys
Does the foreach loop have an inbuilt iterator ?

Display thumbnails as square while retaining aspect ratio
I am trying to figure out a way to make an image display as a square, for example 80x80 pixels, when

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