<?php echo preg_replace( '/\s*\K@([^\s]+)[^\(]+\(([^)]+)\)/', '<a href="example.com/$1">$2</a>', 'hello @nickname (User)!' );
You have javascript disabled. You will not be able to edit any code.