"Yanfly Core Engine" How to change to european digit?

Hello!

Yanfly Core Engine Line:283

I’d like to know if it’s possible to change digit script :
1,234,567 to 1’234’567

I tried to simpely change…

class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1,\2')endend # Numericto...

class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1,\2') # (... ?/''\1,\2')endend # Numeric…but of course it doesnt work ^_^;

I dont understand a single sign of that blahblah. I just thought it was logical ^_^;

Merci for help.
try this 

Code:
class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\'|$))(\d{3}\..*)?/,'\1,\2')endend # Numeric
Hi Nio!

Tried, but did not change anything.

EDIT:

Well well well. After trying this, that, remove it, type that, ..., ... totaly blindness style,

I think i found it out!

I changed it as follow:

#==============================================================================# ■ Numeric#==============================================================================class Numeric#--------------------------------------------------------------------------# new method: group_digits#--------------------------------------------------------------------------def groupreturn self.to_s unless YEA::CORE::GROUP_DIGITSself.to_s.gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1\'\2') # added \' after ,'\1endend # NumericI realy dont know if it will cause bug or error later, but at the moment it works well.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-core-engine-how-to-change-to-european-digit.36389/