This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! 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) |