Regular expressions: Difference between revisions

m
→‎[[Python]]: Oops, extra period.
No edit summary
m (→‎[[Python]]: Oops, extra period.)
Line 183:
 
if re.search(r'string$', str):
print "Ends with 'string'."
 
Test, storing the compiled regular expression in a variable