preg_replace( '~((?:S*?s){2})~', "$1n",*$degisken*);