<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Georgia"> I am trying to convert the SED code below
to Python3.3. How do I reference the value of the first and second
wildcards so that I can put the variable values in the "replace"
portion of the code?<br>
<br>
SED (this works):<br>
export DATA=$(echo "$DATA" | sed -r -e "s|^<substitute
find=\"(.*)\" replace=\"(.*)\"/> $|\1(>=>)\2|gI")<br>
<br>
Python3.3 (attempted):<br>
DATA = re.sub('^<substitute find=\".*\" replace=\".*\"/>$',
'\1(>=>)\2', DATA, flags=re.I)<br>
<br>
<br>
Thank you,<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:DevynCJohnson@Gmail.com">DevynCJohnson@Gmail.com</a><br>
</font>
</body>
</html>