in reply to Untaint IP address/hostname question
Solves the above hostname issue but misses a good few invalid values.(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+\.)+\w{2,3})
Is better but you are far better using Regex::Common functions.(\d+|(?:\d{1,3}\.){3}\d{1,3}|(?:\w+\.)+\w{2,3})
Hope it helps
UnderMine
|
|---|