in reply to How can I find the first position of a substring case-insensitively?
if ($mystr =~ /(?=a)/gi) { $position = pos($mystr); } [download]