Author: bugman Date: Mon Apr 14 16:39:36 2008 New Revision: 5692 URL: http://svn.gna.org/viewcvs/relax?rev=5692&view=rev Log: '*' shouldn't be replaced by '+', it should be replaced by '.*'! 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=5692&r1=5691&r2=5692&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Mon Apr 14 16:39:36 2008 @@ -176,6 +176,10 @@ This method converts from relax's RE syntax to that of the re python module. + The changes include: + + 1. All '*' to '.*'. + @param string: The molecule/res/spin name or number. @type string: None, str, or number @param patterns: A list of patterns to match. This should be the output of @@ -197,8 +201,8 @@ # Force a conversion to str. pattern = str(pattern) - # First replace any '*' with '+' (relax to re conversion). - pattern = replace(pattern, '*', '+') + # First replace any '*' with '.*' (relax to re conversion). + pattern = replace(pattern, '*', '.*') # String matches. if search(pattern, string):