bazz
03-09-2010, 06:18 AM
Hi,
I thought I had this wokring but it seems not. Was trying to enter the word 'exceptional' but it was rejected, likely due to the x. It's the only thing I can think of.
So here is my regex. How can the /x0/ part be improved.
if ( $title =~ /^[^\w\d\s\ \'\!\?\£\$\&\(\)\-\+\;\:\@\,\.]+$/ || $title =~ /[x0]/ || $title eq '' ) {
bazz
I thought I had this wokring but it seems not. Was trying to enter the word 'exceptional' but it was rejected, likely due to the x. It's the only thing I can think of.
So here is my regex. How can the /x0/ part be improved.
if ( $title =~ /^[^\w\d\s\ \'\!\?\£\$\&\(\)\-\+\;\:\@\,\.]+$/ || $title =~ /[x0]/ || $title eq '' ) {
bazz