Regular expressions: Difference between revisions

Content deleted Content added
Add Brat example of regular expressions
Line 1,403:
 
if re.search('string$',string):
print ("Ends with string.")
 
string = re.sub(" a "," another ",string)