preg-match with a string and numbers


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

Hi, I can't get the expression to work for my preg_match, what I'd like is for it to match the string, but only if it is accompanied by a letter, not a number. So if a string was found with a number after it, it would pass, but fail if there where letters.
I have this but it doesn't work:

if(!preg_match("/table-/+[abcdefghijklmnopqrstuvwxyz]", $string, $dump)) {
Did you know?Explore Trending and Topic pages for more stories like this.
//do stuff
}
Thanks for any help.
No comments posted yet

Your Answer:

Login to answer
338 Like 39 Dislike
Previous forums Next forums
Other forums

How to login with SAPCPIC userid
I have changed the Password for SAPCPIC in Development Server for 000,001 and 100 client.
But w

Create PHP table grid help, please
I have a MySQL database setup, now it's time for the table (gridview) design in php. Here's the prob

Upload, SSL and more php help
I recently just installed a ssl cert and do i use https for the whole site or just for the checkout.

PHP page is blank
Hi Everyone,

I have a site in which I am able to open the first PHP webpage in my browser but

GET * FROM _____ Except?
I have a site that is for stock photography.

This section of the code calls images to display

help with this code please?
Hello,

I am trying to build a remote upload script for my image hosting site.

I am usi

Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

Upload file!
Ok i have a form..
Code: <form name="form1" method="post" action=&quo

mysql VARCHAR acting like INT
Hi, All.

I have a table that contains a varchar(10) column named weird_field. In this column

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