Hello, I have a question because there is a blockage in coding.
The input is as follows
You are my happiness, but I love you
The (happiness) part is left with one parenthesis, and (happiness (you)) is made up of two parentheses, so it should be deleted.
Output is as follows
You are my happiness but I love you
If you use a regular expression, you can only make up the part where you delete the parentheses.
I don't get the results right. I need your help!python
I tried to solve it with the regular expression, but it's still too much for me. This is possible with the regular expression [email protected]
© 2022 pinfo. All rights reserved.