Sublime Forum

Implementation: Regex into PHP to modify any .txt files

#1

I want to use any regex using PHP script to change all .txt files from localhost. I could easy use Sublime, but take a lot to process the 10,000 files.

therefore I made this script (but I’m not a programmer, nor have talent here) but at least I tried. You have my script above. I selected files, and introduced a function prag_match to introduce a certain regex equation. But if you check alone gives me error, something is written properly.

if someone can help me …

http://codepad.org/fkYuD2Ka

Practical, the problem is when I try to insert a regex with php.

0 Likes