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

get the country of visitor and display content based on that
Hello all,

I have seen that Google analytics can tell you where a visitor is coming from and

php multiple action on submit
I have a form which says:

<form enctype='multipart/form-data' method='post' action='pr

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

explode() function problem maybe
Hi I'm having trouble searching my database. When I type two words in the search field it only searc

Curl & sessions PLS HELP
Hello,

I have a problem with curl and sessions and i will try to explain the best i could.

Email with Attachments in PHP
Hi Friends

How to send email in PHP with attachment.
I know simple mail can be sent with

Filtering an Array Based on Value
I have a very simple script set up that pulls data from a database and is output using this code:

Thread in PHP
Thread in PHP
Some basic use and basic code for thread in php
This is my question?

Dynamic memory problem
Hey,

At the beginning of my code, I have this line:

Shape* gShape = 0;

Issue Parsing XML into table
Hello all,

Im a bit new to php and new to phpfreaks. But thanks in advance for the help!
<

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