Regular Expressions 101

Community Patterns

Fix Spanish Quote Marks

0

Regular Expression
Python

r"
(^|[\.\?\!\-]\s|)([A--ÚÑ][^¿¡\!\?\.]+)((\.{3})?\?)
"
g

Description

Adds a ¿, for ¡ replace the last ? for !

Submitted by paconaranjo - 10 years ago