haven't used regex replaces much and am not sure if how I have done this is the best way of doing it. Im trying karşı change eg:
'(.123.)' OR 123.)' OR '(.123
karşı
'.(123).' OR 123).' OR '.(123
ortasında bir int olmalıdır.
preg_replace('/\.\)/', ').',preg_replace('/\(\./', '.(',preg_replace('/(\.[0-9]+\.)|(\.[0-9]+|[0-9]+\.)/', '($0)',$str)));
the code I have above works, just wondering if there is a better way karşı do it