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

Help with php code
Hello, can anyone tell me why this php word trap fails to work,
and the trigger words get blow r

Passing Variables
What I'm wanting to do is when the user clicks on Arenas it will know the name of the country it's w

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010

Last character removed
I have created a string from an array. I have inserted commas from my form values. I am trying to re

Stopping page post back
I have few literal contriols in my page and a repeater too. But inspite of using update panel, postb

Dealing with code in db query
I am dealing with C code and I need to make sure it is encoded some how to ensure its integrity and

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

SuperCali PHP Event Calendar
does anyone have any experience with the SuperCali PHP Event Calendar? I could use some assistance

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