codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $string = " Some string "; $output = preg_replace_callback("/^\s+|\s+$/","uScores",$string); echo $output; function uScores($matches) { return str_repeat("_",strlen($matches[0])); } ?>
Private
[
?
]
Run code
Submit