in reply to Optimizing a regex

Hi,
if that constructs does exactly what it needs to, I think you're probably fine off using it anyway (uhm, OK, I posted the question concerning a Profiler an hour ago *grin*.). I very rarely get to points when I got to think about performance and thus prefer rapid development and 'saying what I mean'.

Are you in need of good performance here or is this point just reached once or twice (at least less that -say- a hundred times) during your run?
Regards
Stefan K

$dom = "skamphausen.de"; ## May The Open Source Be With You! $Mail = "mail@$dom; $Url = "http://www.$dom";