perl 2 python
Hi all,
I am newbie in python. I would like to convert the following to python2.7:
($jean =~ /string/ || $set !~ /\[(.*)\]/) and next;
what is the equivalent of not match (!~) in python?
I used “if re.match(“string”, ccline[5]): continue” for the first part but don’t know how to put “||” and second part?
Thanks in advance for your help J
• 1,146 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello simonjean434!
We believe that this post does not fit the main topic of this site.
Pure programming questions go to stackoverflow, where you will find an answer for this already. I don't know about any other language that has this operator, but it is mostly syntactic sugar for ! ( =~ ) or the ^ regex operator.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!