in reply to Using a config file in my regexp script.

I don't really understand what the config file is for? But yes, there are any number of ways of maintaining a config. But why? There are any number of HTML parser modules out there - as you should have read in the responses to other threads you participated in.

With the possibility that HTML tags will run over multiple lines and all the other variability in html (like unbalanced cases of chars in tags, missing closing tags etc. etc) you will soon find that a simple regex solution will fall apart.

Look at the links, spend a day or two going through the modules and I think you will soon understand WHY they were written in the first place.

jdtoronto speaks with the voice of bitter experience!

  • Comment on Re: Using a config file in my regexp script.