Author: bugman Date: Mon Apr 14 16:30:49 2008 New Revision: 5690 URL: http://svn.gna.org/viewcvs/relax?rev=5690&view=rev Log: '*' is replaced with '+' ion the Selection.wildcard_match() method. This is to convert from relax re format the python re format. Modified: 1.3/generic_fns/selection.py Modified: 1.3/generic_fns/selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/selection.py?rev=5690&r1=5689&r2=5690&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Mon Apr 14 16:30:49 2008 @@ -23,7 +23,7 @@ # Python module imports. from os import F_OK, access from re import compile, match, search, split -from string import strip +from string import replace, strip from textwrap import fill # relax module imports. @@ -192,6 +192,9 @@ for pattern in patterns: # Force a conversion to str. pattern = str(pattern) + + # First replace any '*' with '+' (relax to re conversion). + pattern = replace(pattern, '*', '+') # String matches. if search(pattern, string):