Re: regex nth match of string, perl 5.8.5

2006-01-23 Thread Chris Cosner
Bingo! Thanks for the replies. Just use the "non-greedy" form of "*": s{(\)(.*?)(\)}{$1$2\<\/I\>}g should do what you want. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regex nth match of string, perl 5.8.5

2006-01-23 Thread Dr.Ruud
Chris Cosner schreef: > The beginning and ending markup are the same. So text would > become text in HTML. A single line can have more than one of > these italicized words, for example. If all in a single line: s~(.*?)~$1~g -- Grtz, Ruud -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: regex nth match of string, perl 5.8.5

2006-01-23 Thread Jay Savage
On 1/23/06, Chris Cosner <[EMAIL PROTECTED]> wrote: > Hello, > > I have some data coming into a system with markup that I need to > reinterpret into HTML. I have a feeling I'm making this problem more > complex than it needs to be. > > The beginning and ending markup are the same. So text would > b

regex nth match of string, perl 5.8.5

2006-01-23 Thread Chris Cosner
Hello, I have some data coming into a system with markup that I need to reinterpret into HTML. I have a feeling I'm making this problem more complex than it needs to be. The beginning and ending markup are the same. So text would become text in HTML. A single line can have more than one of