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)) {
//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

Need understanding of this bit of code
Code: <?php
// WHERE clause filters
$arrSQLFilters = array();

//

Finding digits in variable containing text, and IDing them
$romanstock = "http://www.remoteprice.com/data.asp?storeid=123&itemcode=456&typ

Script not running properly
Hello Everyone
This is a basic script for posting to a database. I'm not sure why it doesn't work

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

background color imagefill
Hello

I would like to ask you why I see this square in red color just in my local xampp insta

how to remove in php string display
My code is

$message="We're looking at developing our website.";

$body= "

php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu

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

DBCA Templates
Hi all,

I'm working on creating a template for DBCA, but can't find any documentation on the

download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a dir

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