(self, regex)
Determines if the parameter has characters and assigns it to the
        instance variable _regex if it does after replacing the target
        information where the keyword %TARGET% is used. This keyword will
        be used in the xml configuration file where the user wants
        the target information to be placed in the regex.

        Argument(s):
        regex -- string representation of regex pulled from the
        xml file in the regex entry XML tag.

        Return value(s):
        Nothing is returned from this Method.

        Restriction(s):
        This Method is tagged as a Setter.
Determines if the parameter has characters and assigns it to the
        instance variable _regex if it does after replacing the target
        information where the keyword %TARGET% is used. This keyword will
        be used in the xml configuration file where the user wants
        the target information to be placed in the regex.
Determines if the parameter has characters and assigns it to the instance variable _regex if it does after replacing the target information where the keyword %TARGET% is used . This keyword will be used in the xml configuration file where the user wants the target information to be placed in the regex .
def RegEx(self, regex):
        """
        Determines if the parameter has characters and assigns it to the
        instance variable _regex if it does after replacing the target
        information where the keyword %TARGET% is used. This keyword will
        be used in the xml configuration file where the user wants
        the target information to be placed in the regex.

        Argument(s):
        regex -- string representation of regex pulled from the
        xml file in the regex entry XML tag.

        Return value(s):
        Nothing is returned from this Method.

        Restriction(s):
        This Method is tagged as a Setter.
        """
        if len(regex) > 0:
            try:
                regexreplaced = regex.replace("%TARGET%", self._target)
                self._regex = regexreplaced
            except AttributeError:
                regexreplaced = []
                for r in regex:
                    regexreplaced.append(r.replace("%TARGET%", self._target))
                self._regex = regexreplaced
        else:
            self._regex = ""
def RegEx ( self , regex ) : if len ( regex ) > 0 : try : regexreplaced = regex . replace ( "%TARGET%" , self . _target ) self . _regex = regexreplaced except AttributeError : regexreplaced = [ ] for r in regex : regexreplaced . append ( r . replace ( "%TARGET%" , self . _target ) ) self . _regex = regexreplaced else : self . _regex = ""