Perl - how to access dot within regex?
Posted
by goe
on Stack Overflow
See other posts from Stack Overflow
or by goe
Published on 2010-04-15T11:44:36Z
Indexed on
2010/04/15
11:53 UTC
Read the original article
Hit count: 303
Hi,
I use this codition to check if the value is alphanumeric values:
$value =~ /^[a-zA-Z0-9]+$/
How can I modify this regex to account for a possible dot "." in the value without accepting any other special characters?
© Stack Overflow or respective owner