Tips for PCRE expressions?
7 Jan
2004
7 Jan
'04
19:35
I'm trying to implement some data checking using PCRE for regular expressions. My experience using regex is fairly limited and very rusty. For the most part, I've been able to replace most of the simple C based checks with regex, but I'm having trouble with one that I think should be possible with regex. What I'm having trouble with is a check of an alphanumeric field (up to 10 characters) that lets everything *except* UNK, UNKN, and UNKNOWN through (logic being if it's unknown, it should be blank). I was thinking I should be able to do this with look-ahead or look-behind assertion, but I can't seem to make it work. Any ideas would be appreciated. -- trey
7655
Age (days ago)
7655
Last active (days ago)
0 comments
1 participants
participants (1)
-
Trey Gruel