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

Display Database
I need to create a shopping cart. I found this code online: http://conceptlogic.com/jcart/
Unfort

Select question
Hi,

First I would like to say that php is pretty new for me..
so please don't shoot me if

How to show the difference between two data field in a database with php.
Hello php gurus,

how r u all... i'm not so well facing a typical problem please help me...<

Better Method of a Member Cloud
I assume most people know how tag clouds work, where the tags most used are bigger and the least use

Simple Question
I know this is a simple question, that if I knew what it was technically called i could probably loo

INSERT for date range
Hi all

I have the following table

Code: [Select] `date` date
`day` int(2)
`

Calander Basic Spript help
hi, just starting out with PHP and have the following script:

<?php
//This gets t

LinkedList help
Ok so I just learned quickly about lists, so I have a not too hard project I think, but am having a

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

Solution Manager BPR
Does the SolMan-BPR-ARIS-Integration (http://www.ids-scheer.com/en/ARIS/ARIS_Platform/ARIS_Business_

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