The regular expression is already working but I could not manage to convert the the package to lower case.my $string = "aDescriptor.Type = {\@see Star.Awt.Win#TOP}"; $string =~ s/ {\@see\s+((\w+\.)+)(\w+)#(\w+)}/ <idl package="$1" name="$3" anker="$4" /> /g; # desired output would be : # aDescriptor.Type = <idl package="star.awt." name="Win" anker="TOP"/>
In reply to Regexp matched part to lower case by tomson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |