Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#553 Filter substitution points to arbitrary text file

open-accepted
nobody
5
2012-11-23
2012-11-22
Alex Fotios
No

Hi there,

this may already be possible although I looked and did not find it.

It would be nice if the s/// substitution pattern accepted a path to a there file where the text to replace the match is pulled from. This would be particularly handy for pulling in HTML code portions that are much longer than a couple of lines.

Cheers,
Alex

Discussion

  • Fabian Keil
    Fabian Keil
    2012-11-23

    Thanks for the suggestion.

    A general include directive is already on the TODO list as #102, but it probably will not cover splitting pcrs commands across multiple files.

    I agree that this would be useful, though, and patches to implement it would be welcome.

     
  • Fabian Keil
    Fabian Keil
    2012-11-23

    • status: open --> open-accepted