Quote:
Originally Posted by ungalnanban View Post
See the following code. It will match & followed by n number of
numbers/characters.

Code:
$val =~ s/&(.*) /{$1}/g;
print $val;
In above code(previous post) space will not come, now I correct it.

Code:
$val =~ s/&(.*)/{$1}/g;
print $val;



sorry, I think while copy and pasting time the space is added.