Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\b[1-9]\d{0,2}(?:[ ,.]\d{3})*\b
/
ug
Input 1
1
New
it need to only select , when there is number around it. for example only when 123,456 i need to select and replace "," I'm converting English numbers into Persian (e.g: "Hello 123" becomes "Hello ۱۲۳"). now I need to replace the Decimal separator with Persian version too. but I don't know how I can select it with regex. e.g: "Hello 121,534" most become "Hello ۱۲۱/۵۳۴" The character that needs to be replaced is , with /