tomson has asked for the wisdom of the Perl Monks concerning the following question:
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"/>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp matched part to lower case
by monarch (Priest) on Jun 02, 2005 at 07:23 UTC | |
by holli (Abbot) on Jun 02, 2005 at 09:53 UTC | |
|
Re: Regexp matched part to lower case
by prasadbabu (Prior) on Jun 02, 2005 at 07:11 UTC | |
by tomson (Initiate) on Jun 02, 2005 at 07:15 UTC | |
by ivancho (Hermit) on Jun 02, 2005 at 07:18 UTC | |
by prasadbabu (Prior) on Jun 02, 2005 at 07:21 UTC | |
|
Re: Regexp matched part to lower case
by PodMaster (Abbot) on Jun 02, 2005 at 08:54 UTC |