Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(\(pp\.)? \d+(-\d+)?\)?
"
gm
Input 1
New
0 I've many string that have two possible format to display page numbers: (pp. 4500-4503) or just 4500-4503 (there may be also cases where I have only one page so (pp. 113) or just 11 . Some exemples of strings: - Mitchell, J.A. (2017). Citation: Why is it so important. Mendeley Journal, 67(2), (pp. 81-95). - Denhart, H. (2008). Deconstructing barriers: Perceptions of students labeled with learning disabilities in higher education. Journal of Learning Disabilities, 41, 483-497.
Substitution
0 I've many string that have two possible format to display page numbers: (pp. 4500-4503) or just 4500-4503 (there may be also cases where I have only one page so (pp. 113) or just 11 . Some exemples of strings: - Mitchell, J.A. (2017). Citation: Why is it so important. Mendeley Journal, 67(2), (pp. 81-95). - Denhart, H. (2008). Deconstructing barriers: Perceptions of students labeled with learning disabilities in higher education. Journal of Learning Disabilities, 41, 483-497.