I'm trying to work out how to process a block of text which contains tags
similar to [link]http://something.com[/link]. I want to work through the
text block and pass the contents of each tag to function and then carry on
through the text when the function returns. I don't necessarily want to
change the text block, I think if I did it would make it easier as then I
could use a loop though the changing block with a regexp to find the next
unchanged tag until it could find no matches. Can anyone suggest a method of
doing it without changing the text block?
Many thanks,
Geoff
similar to [link]http://something.com[/link]. I want to work through the
text block and pass the contents of each tag to function and then carry on
through the text when the function returns. I don't necessarily want to
change the text block, I think if I did it would make it easier as then I
could use a loop though the changing block with a regexp to find the next
unchanged tag until it could find no matches. Can anyone suggest a method of
doing it without changing the text block?
Many thanks,
Geoff
Comment