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

Get dump of MySQL DB from Live Site
I'm after an easy, but secure way of generating and importing a MySQL dump from a remote server.

Simple email form - Newbie
Hello all,

First time poster!

I've been asked to create a simple HTML form that submit

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

Paypal
Hi all,

I have an advanced basic knowledge of php

I want to try something new for a s

Local file browser with php
Halo..

So this is what i want to create. I have a folder that i share and it has many movies.

Can anyone give me some link on .htaccess tutorial
i wish to have friendly url using .htaccess, but no idea yet about this

Hope that anyone cou

Save username into DB
OkaY so I got my blog to actually save the posts and whatever, all I need now is for it to keep the

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

problems with search form numerical "between" sending by php
I am trying to display the results of a search, on a sql database, on a web page. I set up html &quo

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