in reply to regular expression to check if the textbox contains only special characters
use warnings; use strict; while (<DATA>) { if (/[A-Z]/) { print 'good '; } else { print 'bad '; } print; } __DATA__ * *,* *.* ABC ABC,DEF,GHI_JKL
Outputs:
bad * bad *,* bad *.* good ABC good ABC,DEF,GHI_JKL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regular expression to check if the textbox contains only special characters
by choroba (Cardinal) on Oct 17, 2016 at 14:55 UTC | |
by Anonymous Monk on Oct 18, 2016 at 09:54 UTC | |
by choroba (Cardinal) on Oct 18, 2016 at 10:09 UTC | |
by Anonymous Monk on Oct 18, 2016 at 10:15 UTC |