Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to use re.sub

new_string = re.sub(r"xxx|yyy", "abc", a_string)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+5 =