Regular Expressions 101

Community Patterns

Get number in the middle of string

0

Regular Expression
Python

r"
[\d][\d.,]*(?=[\s]?[(].*?[)])| [\d][\d.,]*(?=\s?$) #(?<=.[.\s])[\d.,]+(?=(\s?[(].*?[)])|\s?) ini juga bisa
"
gmx

Description

From Rp. 1.000.005,52 (35 %) to 1.000.005,52

Submitted by anonymous - 3 years ago (Last modified 3 years ago)