Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

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

Submitted by paconaranjo - 10 years ago