<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/ghubstan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ghubstan">@ghubstan</a><br>
Yes. A RegEx is used that anchors at the trailing end of the string, so only the last zeroes are matched. It can no have multiple mathches.<br>
The use of either function replaceFirst or replaceAll does not matter.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/4761#issuecomment-724170753">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNVVHOZS6ONAV6G4M5DSPATTTANCNFSM4TNR4QRA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNUSOCYYEFCF5PLCKPLSPATTTA5CNFSM4TNR4QRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFMU7QAI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/4761#issuecomment-724170753",
"url": "https://github.com/bisq-network/bisq/pull/4761#issuecomment-724170753",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>