Skip to content

Instantly share code, notes, and snippets.

@Iverson7
Iverson7 / gist:15f40a7d63cd36510b9dbe1394888aae
Created June 14, 2019 11:28
findUserInputFromClipboard
#! python3
# Program to check if the entered string is found in the clipboard
import re,pyperclip
userInput = input("Enter the string to be searched: ")
regex = re.compile('{}$'.format(re.escape(userInput)))
searchString = str(pyperclip.paste())
print(searchString)