Python Forum
Python Regex multiple search into separate variable?
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Regex multiple search into separate variable?
#5
(Jan-03-2019, 11:04 PM)nilamo Wrote: Yep!

Thanks for your man,

But I would to ask if the first code that you've given (help re.search....) is for putting an out none?
How can I use regex in if statement.. if there no match i'll display none?

Ex.
if regexoutput6:
print ("License:", str(regexoutput6.group(0)))
else:
print("Licence: none")

Is this the correct way? Thanks
Reply


Messages In This Thread
RE: Python Regex multiple search into separate variable? - by searching1 - Jan-04-2019, 08:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to split socket data onto multiple clients for separate processing ConcealedFox70 0 1,995 Jan-11-2022, 08:26 PM
Last Post: ConcealedFox70

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020