gorn | It ’ s like dmenu_run
kandi X-RAY | gorn Summary
kandi X-RAY | gorn Summary
Gorn is a wrapper around dmenu. It’s like dmenu_run with history.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Checks for exec
- Add adds a string to the history
- Generate a new Path based on the given pathname
gorn Key Features
gorn Examples and Code Snippets
Community Discussions
Trending Discussions on gorn
QUESTION
I'm a bit stuck with Tkinter. The problem is the following: I want the output of the function to be displayed on the GUI app window (please see the screenshot). What am I doing wrong and can someone please assist me in rearranging the code logic? The list of nicknames is perfectly displayed in the console though.
...ANSWER
Answered 2021-Apr-25 at 08:54Improved Your code a bit:
QUESTION
[{"No.":1,"source_link":"www.aa.com","brand":"Gorn","item_name":"Beautiful","category":"Red","message":"My email is abcdefg@gmail.com","create_date":"13\/7\/2017 20:04","date":"13\/7\/2017"},{"No.":2,"source_link":"www.bb.com","brand":"Mik","item_name":"Pork","category":"White","message":"My email is zxcvbg@gmail.com","create_date":"13\/7\/2017 20:04","date":"13\/7\/2017"}]
The text above is my data format. And I want to create new field which is Email field. Email field will be used to extract email from message field. So the output should look like this
'[{"No.":1,"source_link":"www.aa.com","brand":"Gorn","item_name":"Beautiful","category":"Red","message":"My email is abcdefg@gmail.com","Email",abcdefg@gmail.com","create_date":"13\/7\/2017 20:04","date":"13\/7\/2017"},{"No.":2,"source_link":"www.bb.com","brand":"Mik","item_name":"Pork","category":"White","message":"My email is zxcvbg@gmail.com","Email",zxcvbg@gmail.com""create_date":"13\/7\/2017 20:04","date":"13\/7\/2017"}]'
The below is extract email code
...ANSWER
Answered 2018-Jan-28 at 07:43import re
A = [{"No.":1,"source_link":"www.aa.com","brand":"Gorn","item_name":"Beautiful","category":"Red","message":"My email is abcdefg@gmail.com","create_date":"13\\/7\\/2017 20:04","date":"13\\/7\\/2017"},{"No.":2,"source_link":"www.bb.com","brand":"Mik","item_name":"Pork","category":"White","message":"My email is zxcvbg@gmail.com","create_date":"13\\/7\\/2017 20:04","date":"13\\/7\\/2017"}]
for i in A:
match = re.search(r'[\w\.-]+@[\w\.-]+',i["message"] )
i["Email"] = match.group(0)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gorn
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page