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

grouping within a foreach?
hello all,

I currently have a list of products spit out from my db via a foreach loop. Right

Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n

Random Number Generation And Probability
Hello, I am working on a function which has to insert data into a SQL table.

we have to suppl

try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called

array_combine() error
getting an "Warning: array_combine() [function.array-combine]: Both parameters should have an e

header redirect problems? please help
Ok i am making a site that generates youtube thumbnails and i am generating an image that displays 1

How do I use ValidatorCallout extender in Login control?
Hi,I'd like to customize the look and feel of the login control a little bit. One thing I'd love to

how do i make new line after *
First check this page here. and you see my report. Im pulling form a mysql db. I want to beable to m

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

captcha error
I have been trying to implement a captcha in php...

here is the code..
Code: (php) [Select

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