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

onClick='location.href=index.htm'> not working
Below is my code:

echo "<input type='button' value='redirect' onClick='location.h

Mass activity scheduling
Hi experts,

Im facing some problems to deal with mass activity jobs.
When I run some

Output Buffering question
Hi all,

I've been trying to wrap my head around output buffering. So far I've found tons of

Problems with array
This code is the last lines in an upload script that uploads 4 images at the same time and writes th

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

Multidimensional $_POST
Hello

How to get a single array from array of array (2 - dimension).
For example I have a

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Fetching META TAGS through
Hello everybody
I want to fetch meta tags of a domain.
It will be done from following code of

Image loading
Hi Developers,

I'm trying to display an image from images/image.gif getting the url from mysq

printing links
Hi every1

i am connecting to a table in sql and the looping through with a while ($ var = my

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