<form action method="POST">.........</form>
data = re.findall(r" <form action method="POST">(.*)</form>",text)print data