Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I need to somehow let regex match first part of the code as translation string and second (everything after '",') as parameters and then replace them in the sentense If I'm understanding correctly the problem... in pseudocode: If found (something), replace $1; save $POSTMATCH (linked to the match?) and do something with it Seems a job for a %hash{item} = "translation" to me, where translation could be maybe an array of options? As number of tags is, probably, limited you could check and validate only for some predefined values. If those names are well defined you don't need probably to care for saving the ("") envelopment. In reply to Re: regex for translation
by pvaldes
|
|