Hi.

I thought the group might like this one.

I want a regex to check whether a string contains a sequence of non-space
characters with /both/ word and non-word characters in it (\w and \W).

So

  'Rob'
  'SHREWSBURY'
  'SY3 8BH'
  'Mike & Dave'

all pass, but

  'http://www.site.com/'
  'Rob&Dave'
  '2+2'

all fail. I'll be thinking on this myself later...

Thanks,

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to