Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding understanding help
#2
I believe that this line:
text=str(pyperclip.paste())
copies the clipboard text into variable text.
Then groups is what is found using phonenumber regex
groups[1], groups[2], groups[5] are the 2nd, 3rd and 6th positions in the result of regex find (zero based)
Reply


Messages In This Thread
Coding understanding help - by srikanth - Jul-18-2019, 12:23 PM
RE: Coding understanding help - by Larz60+ - Jul-19-2019, 09:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New to python/coding Need help on Understanding why this code isn't working. Thanks! mat3372 8 2,027 May-09-2023, 08:47 AM
Last Post: buran
  coding understanding help kapman2006 5 5,432 Nov-06-2016, 09:52 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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