xxxxxxxxxx
# "To update Linux type:"
sudo apt-get update
# To upgrade Linux
sudo apt upgrade
# For Both
sudo apt update && sudo apt upgrade -y
xxxxxxxxxx
# "To update Linux type:"
sudo apt-get update
# Enter your user's password.
xxxxxxxxxx
import re
# Define the text and the word to search for
text = "You need to add, Add the numbers or find Add and sum."
word_to_find = "Add"
# Use the regex pattern with word boundaries (\b)
pattern = r'\b' + re.escape(word_to_find) + r'\b'
# Find all occurrences of the word
matches = re.findall(pattern, text)
# Print the result
print(f"Found {len(matches)} occurrence(s) of the word '{word_to_find}': {matches}")