I cannot deal with the conditions in regular expressions. I need to find everything:
<script type="text/javascript">9089089089</script>
<script>9089089089</script>
Example:
<script type="text/javascript" src="python_files/py_dict.js"></script>
My regex is not working properly. Please tell me how to do it?
re.compile(r'<script.*(?<!src$).*?>(.*)</script>')
I need to find all the <script> tags that do not contain the src attribute and display the code that is inside the tag.