Search results for query: *

  1. Z

    Question Modify linking tags after analyzing some data in a file

    I want to make a program which will look for a expression <disp-formula id="deqn(\d+)-(\d+)"> in files and if there is one or more match, then it will search the whole file for expressions in the form <xref ref-type="disp-formula" rid="deqnX">(X)</xref> or <xref ref-type="disp-formula"...
  2. Z

    Question Removing invalid links from all files inside a folder

    The code that seems to work is (the tags are changed from "<a href" to "<xref ref-type="section" rid" and </a> to </xref>) Dim targetDirectory As String = TextBox1.Text Dim txtFilesArray As String() = Directory.GetFiles(targetDirectory, "*.xml") For Each txtFile In txtFilesArray...
  3. Z

    Question Removing invalid links from all files inside a folder

    I still cannot figure out how to successfully apply "Regex.Replace Method (String, String, MatchEvaluator)" in my program:miserable:
  4. Z

    Question Removing invalid links from all files inside a folder

    Could you please elaborate it with a bit of code? I'm new to coding, so I'm not familiar with how to use matchevaluator. :lookaroundb:
  5. Z

    Question Removing invalid links from all files inside a folder

    I want to create a tool which will remove invalid links from all say *.txt files inside a directory. Sample file: <sec id="sec1"> <p>"You fig. 23 did?" I <a href rid="sec12">section 12</a> asked, surprised.</p> <p>"Cross sent it table 9 to me a few weeks ago." Stanton crossed over to my mother...
Back
Top