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
/
\£(?:[1-9]\d{0,2}(?:,\d{3})*|[0-9]+)?(?:\.\d{1,2})?(*SKIP)(*F)|\.(?!\s*$)
/
gm
Input 1
1
New
This string should not split as the only periods that appear are here £19.99 and also here. This string should split right here. As the period is not part of a price or at the end of the string. There is a price in this string £19.99, but it should only split at this point. As I want it to ignore periods in a price.
Extraction
This string should not split as the only periods that appear are here £19.99 and also here. This string should split right here. As the period is not part of a price or at the end of the string. There is a price in this string £19.99, but it should only split at this point. As I want it to ignore periods in a price.