More robust regex matching for applet parameters.