$str =~ s/^(?:hello kitty )(\d+)(?:x\d+.*)$/XX/;