#### (pfff where is my head at. This won't work of course) $superstring =~ m/$B$A/ $superstring =~ m/$prefix$superstring/;