Search found 2 matches
- Mon Jan 28, 2008 7:46 pm
- Forum: Regex
- Topic: Using variables in regex compare pattern
- Replies: 7
- Views: 1811
Re: Using variables in regex compare pattern
Yeah thanks man that works, although I couldn't work out why you have to use the concatenate operator and not just stick it all in double quotes. Finally narrowed it down to the fact that it doesn't like to see "{$" together within the double quotes - must mean something I guess, anyone kn...
- Mon Jan 28, 2008 12:53 pm
- Forum: Regex
- Topic: Using variables in regex compare pattern
- Replies: 7
- Views: 1811
Using variables in regex compare pattern
Hi, Pretty new to this, but couldn't find an answer by searching the forum, so appreciate any help folks can give... I have a simple pattern that I want to use to check that a string, $entry, contains only a-z and has a length, between a min and a max value: eregi("^([a-z]{2,16})$", $entry...