You can modify the pattern to match only positive numbers by removing the optional negative sign.
import re
# Pattern to match only positive numbers (integers and floats)
pattern = r"\+?\d+(\.\d+)?"
# Example text containing positive numbers
text = "Prices increased by +5.75 and 12.99."
matches = re.findall(pattern, text)
print(matches) # Output: ['+5.75', '12.99']