in reply to Re: Must use regex, how to clip...
in thread Must use regex, how to clip...

This is a perl question, right? (I mean, you are actually using perl to run your regex over the data, aren't you?)

...well it is a Perl question in this sense. I have a content management system (TWiki) and it is implemented in Perl. It allows a convention for syndicating other content through the use of a regex. I presume it is simply taking the argument I pass to it (through an %INCLUDE{} directive) and applying it to the incoming HTML stream.

So I am not using the m// operator directly. I'm simply passing a regex, and I presume that the system puts my regex into the match operator for me.

The whole thing is incompletely documented, so I have to make some guesses about how it's working.

(The whole setup as you describe it seems kinda cryptic and warped, like your working inside a totalitarian regime...)

in a way, that's true. But I'm only prevented from understanding it more fully by the fact that I'm too lazy to dig through the code right now to see what they're doing to my regex. I know that a new version is coming out any day, and I don't want to patch something that may be totally different in the next release. (On the other hand, if I solve this problem from the user level, that solution may need to change at the next rev anyway.) But I sort of hoped that maybe I'd find a clever way to write a Perl regex that solves my problem.