Help me creating a script using regular expression patterns for reformatting lines in a file

Help me creating a script using regular expression patterns for reformatting lines in a file

7
NewbieNewbie
7

    14:12 - May 20#1

    Can somebody create a script for UltraEdit/UEStudio with a regular expression pattern for the sample file which is added as attachment with complete "tag"?

    This is the sample text:

    Code: Select all

    Rombout JHWM, Larners CHJ, Helfrich MH, Dekker A, Taverne-Thiele JJ (1985) Uptake and transport of intact macromolecules in the intestinal epithelium of carp (Cyprinus carpio L.) and the possible immunological impheations. <i>Cell Tissue Res</i> 239(3):519-530
    The reformatted line should be structured as follows:
    _rfaut Rombout JHWM, Larners CHJ, Helfrich MH, Dekker A, Taverne-Thiele JJ239519-530 name of author(s) which is at first position in a line
    _rfeti Uptake and transport of intact macromolecules in the intestinal epithelium of carp (Cyprinus carpio L.) and the possible immunological impheations. ETI (English title) which is at third position in the line after the author name(s) and the year
    _rfsti <i>Cell Tissue Res</i> STI which has the position after ETI; it is always in the tags <italic> or <i> in the line
    _rfpy1 (1985) (should be 1985 without round brackets) year which is at position two in the line, sometimes in round brackets
    _rfvn1 239 volume which has the position after STI if the year is after the author(s)
    _rfis1 (3) issue which has the position after volume if the year is after the author(s); it should be always in format: 239[volume](3)[issue]
    _rfpag 519-530 page number(s), maximum time is at last position in a line
    _rftxt if any text is not markable then the text should be put here
    The result should be for the sample text:

    Code: Select all

    _rfaut Rombout JHWM, Larners CHJ, Helfrich MH, Dekker A, Taverne-Thiele JJ239519-530
    _rfeti Uptake and transport of intact macromolecules in the intestinal epithelium of carp (Cyprinus carpio L.) and the possible immunological impheations.
    _rfsti <i>Cell Tissue Res</i>
    _rfpy1 1985
    _rfvn1 239
    _rfis1 (3)
    _rfpag 519-530
    _rftxt 
    This the sample tag list to use:

    Code: Select all

    _rfaut
    _rfeti
    _rfsti
    _rfpy1
    _rfvn1
    _rfis1
    _rfpag
    _rftxt
    Sample References.txt (1.42 KiB)   0
    File with sample references

    6,629551
    Grand MasterGrand Master
    6,629551

      17:05 - May 20#2

      I think, I understood the task. I have just no idea how a regular expression should find out which  part of the following line is for _rfaut and which part is for _rfeti.

      Code: Select all

      Choi N, Kim K, Shin K, Kim Y, Moon H, Park W, et al. Malignant and borderline phyllodes tumors of the breast: a multicenter study of 362 patients. Breast Cancer Res Treat. 2018;171:335–44.
      A regular expression has no language intellisense. I does not understand the Latin alphabet and what the combinations of Latin letters mean for human beings. It searches for bytes according to an expression.

      It is quite clear for me that Choi N, Kim K, Shin K, Kim Y, Moon H, Park W, et al. are the names of the authors(_rfaut) and Malignant and borderline phyllodes tumors of the breast: a multicenter study of 362 patients. is most likely the English title (_rfeti). But I have no idea how a regular expression should determine which bytes belong to the authors string and which bytes to the English title string without a four digit number in rang 1900 to 2099 between them.

      What is the source of the data?

      It is hopefully not really just the plain text as stored in the attached file. It is perhaps better to run the reformatting on the real data source containing meta tags which could be helpful to split up the data.

      Do the list of authors contain never a dot? That would make it possible to interpret . as separator between authors and English title string if not a year is in the line between authors and title.
      Best regards from an UC/UE/UES for Windows user from Austria

      7
      NewbieNewbie
      7

        5:29 - May 21#3

        This is the sample macro for UEStudio version 19. You can use it with the file I attached for sample references.
        Then I hope you understand what I mean actually.
        sample Marcro.zip (3.37 KiB)   0

        6,629551
        Grand MasterGrand Master
        6,629551

          16:48 - May 22#4

          Well, I understood the text reformatting requirements and I could see the result produced by the macro on the file Sample References.txt. The macro also fails to produce the correct result for all lines with exception of the first line in the text file. Only the first line has the year between authors and English title. The other six lines have the year near the end of the line. Line 6 is very tricky as it has with 1998–2009 two years in the English title left to the real year which should be associated with _rfpy1. The result for the sixth line is therefore completely wrong.

          I need the rules for the lines 2 to 7 in the sample references text file as the first line is definitely structured different to the other lines. It looks like there must be supported two different structures to identify with the string at the end of each line, i.e. 239(3):519-530 without a year and no dot at the end versus 2018;171:335–44., 2018;7:1030–42., 2014;21:3304–9., 2008;70:492–500., 2014;21:1222–30., 2015;3:663–71. with year and a dot at the end.

          It would be a great help for script development and testing if you could create manually the contents of the file for the seven lines in Sample References.txt and attach the expected output file as attachment to your next post. That would make it even clearer what you expect as result of the script execution and we would have a file for validation of the result produced by the script to develop.

          By the way: The free to use AI based translation page www.deepl.com could be helpful for you translating your text to post written in your native language to English and the text posted here in English to your native language.

            18:46 - May 25#5

            Here is a small UltraEdit/UEStudio script producing for the UTF-8 encoded file Sample References.txt with EN DASH left to last number on all lines except the first line the output as it can be seen after downloading and extracting the file Sample_References_Reformatted.txt from the attached ZIP file Sample_References_Reformatted.zip.

            Code: Select all

            if (UltraEdit.document.length > 0)  // Is any file opened?
            {
               // Define environment for this script.
               UltraEdit.insertMode();
               if (typeof(UltraEdit.columnModeOff) == "function") UltraEdit.columnModeOff();
               else if (typeof(UltraEdit.activeDocument.columnModeOff) == "function") UltraEdit.activeDocument.columnModeOff();
            
               // Move caret to top of the active file.
               UltraEdit.activeDocument.top();
            
               // Define the parameters for case-sensitive (faster) Perl regular
               // expression replace all executed on the entire file contents.
               UltraEdit.perlReOn();
               UltraEdit.activeDocument.findReplace.mode=0;
               UltraEdit.activeDocument.findReplace.matchCase=true;
               UltraEdit.activeDocument.findReplace.matchWord=false;
               UltraEdit.activeDocument.findReplace.regExp=true;
               UltraEdit.activeDocument.findReplace.searchDown=true;
               if (typeof(UltraEdit.activeDocument.findReplace.searchInColumn) == "boolean")
               {
                  UltraEdit.activeDocument.findReplace.searchInColumn=false;
               }
               UltraEdit.activeDocument.findReplace.preserveCase=false;
               UltraEdit.activeDocument.findReplace.replaceAll=true;
               UltraEdit.activeDocument.findReplace.replaceInAllOpen=false;
            
               // In a JavaScript string each backslash must be escaped with one more backslash.
               UltraEdit.activeDocument.findReplace.replace("^(.+?) \\(?((?:19|20)[0-9][0-9])\\)?( .+? )([0-9]+(?:\\([0-9]+\\))?:[0-9\\-]+)","\\1.\\3\\2;\\4");
               UltraEdit.activeDocument.top();  // Is in most versions of UE/UES not necessary here.
               UltraEdit.activeDocument.findReplace.replace("^(.+?)\\. (.+?)\\. *((?:<(?:italic|i)>.+</(?:italic|i)>)?) ((?:19|20)[0-9][0-9]);([0-9]+)((?:\\([0-9]+\\))?):([0-9\\-]+)","\\r\\n_rfaut \\1\\r\\n_rfeti \\2\\r\\n_rfsti \\3\\r\\n_rfpy1 \\4\\r\\n_rfvn1 \\5\\r\\n_rfis1 \\6\\r\\n_rfpag \\7\\r\\n_rftxt ");
               UltraEdit.activeDocument.top();  // Is in most versions of UE/UES not necessary here.
               UltraEdit.activeDocument.key("END");
               if (UltraEdit.activeDocument.isColNum(1))
               {
                  UltraEdit.activeDocument.deleteLine();
               }
               // UltraEdit.activeDocument.trimTrailingSpaces();
            }
            The first Perl regular expression replace all reformats the first line from

            Code: Select all

            Rombout JHWM, Larners CHJ, Helfrich MH, Dekker A, Taverne-Thiele JJ (1985) Uptake and transport of intact macromolecules in the intestinal epithelium of carp (Cyprinus carpio L.) and the possible immunological impheations. <i>Cell Tissue Res</i> 239(3):519-530
            to

            Code: Select all

            Rombout JHWM, Larners CHJ, Helfrich MH, Dekker A, Taverne-Thiele JJ. Uptake and transport of intact macromolecules in the intestinal epithelium of carp (Cyprinus carpio L.) and the possible immunological impheations. <i>Cell Tissue Res</i> 1985;239(3):519-530
            The second Perl regular expression replace all makes the main reformatting job. The scripting command for trimming all trailing spaces is commented out as I am not sure if that is wanted or not.
            Sample_References_Reformatted.zip (1.03 KiB)   0
            Reformatted Sample References.txt as produced by the script
            Best regards from an UC/UE/UES for Windows user from Austria

            7
            NewbieNewbie
            7

              I will give some perl regular expression patterns can you convert them to script language sir?

              13:43 - May 29#6

              These are the patterns:

              Code: Select all

              Find RegExp SelectText "##_rftxt (.*?) ?\((\d{4}\w?)\)"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \(?(\d{4}) \[(\d{4})\]\)?\.?"
              Replace All "_rfaut $1\r\n_rfpy1 $2-$3\r\n@#@_rftxt"
              Find RegExp SelectText "##_rftxt (.*?) \((\d{4}\l?)\,? (.*?)\)"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) (\d{4}\w?)"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) (\d{4})\."
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \(?(\d{4}\/\d{4})\)?"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \((.*?) (\d{4}\w?)\)"
              Replace All "_rfaut $1\r\n_rfpy1 $3\r\n@#@_rftxt (\2)"
              Find RegExp SelectText "##_rftxt (.*?) (\d{4}\w?)\. "
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \((\d{4}\w?) (.*?)\)"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \((\d{4}\w?), (\w+ \w+)\)"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \((\d{4}\w?), (\w+)\)"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \[(\d{4}-\d{4}|\d{4})\] (\d{4})"
              Replace All "_rfaut $1\r\n_rfpy1 $2-$3\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \(?(\d{4}-\d{4})\)?"
              Replace All "_rfaut $1\r\n_rfpy1 $2\r\n@#@_rftxt "
              Find RegExp SelectText "##_rftxt (.*?) \((\d{4})\) (\d{4})"
              Replace All "_rfaut $1\r\n_rfpy1 $2-$3\r\n@#@_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.*?)(\.|\?) In: (.*?) <i>(.*?)</i>"
              Replace All "_rfeti $2$3\r\n_rfsti $5\r\n$1\r\n@@##_rftxt $4"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.*?)(\.|\?) In: <i>(.*?)</i>"
              Replace All "_rfeti $2$3\r\n_rfsti $4\r\n$1\r\n@@##_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.*?)' in (.*?) <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $4\r\n$1\r\n@@##_rftxt $3"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.*?)', in (.*?) <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $4\r\n$1\r\n@@##_rftxt $3"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.*?)'\. in (.*?) <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $4\r\n$1\r\n@@##_rftxt $3"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.*?)'\. in\: (.*?) <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $4\r\n$1\r\n@@##_rftxt $3"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt \"(.*?)\" In <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@@##_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.*?)(\.|\?) In <i>(.*?)</i>"
              Replace All "_rfeti $2$3\r\n_rfsti $4\r\n$1\r\n@@##_rftxt"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\", <i>(.*?)</i>"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. <i>(.*?)</i>"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3"
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "@@##_rftxt (.+) (\d+-\d+)\.$"
              Replace All "_rfpag $2\r\n@@##_rftxt $1"
              Find RegExp SelectText "@@##_rftxt (.*?) (http.*?) "
              Replace All "_rfurl $2\r\n@@##_rftxt $1 "
              Find RegExp SelectText "@@##_rftxt (.*?) (http.*?)$"
              Replace All "_rfurl $2\r\n@@##_rftxt $1"
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.+)', <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.+)'\. <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.+)' <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt \"(.+)\", <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt \"(.+)\"\. <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt \"(.+)\" <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt \"(.*?)\" <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.+)(\.|\?) <i>(.*?)</i>"
              Replace All "_rfeti $2$3\r\n_rfsti $4\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.+) <i>(.*?)</i>"
              Replace All "_rfeti $2\r\n_rfsti $3\r\n$1\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt <i>(.*?)</i>"
              Replace All "_rfsti $2\r\n$1\r\n@@##_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "@##@_rftxt vol\. (\w+), no\. (\w+), (pp\.|p\.) (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $4"
              Find RegExp SelectText "@##@_rftxt (vol|volume|Vols)?\.? (\d+), no\. (\w+), (pp\.|p\.) (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $2\r\n_rfis1 $3\r\n_rfpag $5"
              Find RegExp SelectText "@##@_rftxt vol\. (\w+), no\. (\w+), (pp\.|p\.) (\w+-\w+|\w+)\."
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $4\r\n@##@_rftxt "
              Find RegExp SelectText "@##@_rftxt vol\. (\w+), no\. (\w+), (pp\.|p\.) (\w+-\w+|\w+)\,"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $4\r\n@##@_rftxt "
              Find RegExp SelectText "@##@_rftxt vol\. (\w+), (pp\.|p\.) (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfpag $3"
              Find RegExp SelectText "@##@_rftxt vol\. (\w+), (pp\.|p\.) (\w+-\w+|\w+)\."
              Replace All "_rfvn1 $1\r\n_rfpag $3\r\n@##@_rftxt "
              Find RegExp SelectText "@##@_rftxt vol\. (\w+), (pp\.|p\.) (\w+-\w+|\w+)\,"
              Replace All "_rfvn1 $1\r\n_rfpag $3\r\n@##@_rftxt "
              Find RegExp SelectText "@##@_rftxt (\d+):(\d+), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@##@_rftxt (\d+):(\d+),(\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@##@_rftxt (\d+)\((\d+)\): (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@##@_rftxt (\d+), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfpag $2"
              Find RegExp SelectText "@##@_rftxt (\d+): ?(\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfpag $2"
              Find RegExp SelectText "@##@_rftxt (\d+):(\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfpag $2"
              Find RegExp SelectText "@##@_rftxt (\d+): ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfpag $2\r\n@##@_rftxt"
              Find RegExp SelectText "@##@_rftxt (\d+) \((\d+)-(\d+)\), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4"
              Find RegExp SelectText "@##@_rftxt (\d+)\((\d+)-(\d+)\), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4"
              Find RegExp SelectText "@##@_rftxt (\d+) ?\((\d+)\), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@##@_rftxt (\d+) ?\((\d+)\), (\w+-\w+|\w+)\."
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3\r\n@##@_rftxt"
              Find RegExp SelectText "@##@_rftxt (\d+) \((\d+)-(\d+)\): (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4"
              Find RegExp SelectText "@##@_rftxt (\d+)\((\d+)-(\d+)\): (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4"
              Find RegExp SelectText "@##@_rftxt (\d+) ?\((.*?)\): ?(\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@##@_rftxt (\d+)\((.*?)\), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@##@_rftxt (\d+) ?\((.*?)\): ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3\r\n@##@_rftxt"
              Find RegExp SelectText "@##@_rftxt (\d+) ?\((.*?)\), ?(\d+-\d+|\d+)"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3\r\n@##@_rftxt"
              Find RegExp SelectText "@##@_rftxt (\d+), ?(\w+-\w+|\w+)$"
              Replace All "_rfvn1 $1\r\n_rfpag $2\r\n@##@_rftxt"
              Find RegExp SelectText "@#@_rftxt (\d+) ?\((.*?)\), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@#@_rftxt (\d+) ?\((.*?)\), (\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3\r\n@##@_rftxt"
              Find RegExp SelectText "@#@_rftxt (\d+) ?\((\d+)-(\d+)\), (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4"
              Find RegExp SelectText "@#@_rftxt (\d+) ?\((\d+)-(\d+)\), (\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4\r\n@@##_rftxt "
              Find RegExp SelectText "@#@_rftxt (\d+), ?(\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfpag $2"
              Find RegExp SelectText "@#@_rftxt (\d+), ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfpag $2\r\n@##@_rftxt"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\d+)\.$"
              Replace All "_rfvn1 $1"
              Find RegExp SelectText "_rfvn1 $1\r\n_rfvn2 $2"
              Replace All "_rfis1 (\d+)-(\d+)"
              Find RegExp SelectText "_rfis1 $1\r\n_rfis2 $2"
              Replace All "_rfpag $1"
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt '(.*?)'"
              Replace All "_rfsti $2\r\n$1\r\n@@@###_rftxt "
              Find RegExp SelectText "@@@###_rftxt (.*?) (http.*?) "
              Replace All "_rfurl $2\r\n@@@###_rftxt $1"
              Find RegExp SelectText "@@@###_rftxt (.*?) (http.*?)$"
              Replace All "_rfurl $2\r\n@@@###_rftxt $1"
              Find RegExp SelectText "@@##_rftxt (\d+), no. (\d+): (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@@##_rftxt (\d+)\. no. (\d+): (\w+-\w+|\w+)\.$"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3"
              Find RegExp SelectText "@@##_rftxt (.*?) (\d+-\d+)\."
              Replace All "_rfpag $2\r\n@@##_rftxt $1"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt \"(.*?)\" "
              Replace All "_rfsti $2\r\n$1\r\n@@##_rftxt "
              Find RegExp SelectText "@##@_rftxt (.*?) (http.*?) "
              Replace All "_rfurl $2\r\n@@##_rftxt $1 "
              Find RegExp SelectText "@##@_rftxt (.*?) (http.*?)$"
              Replace All "_rfurl $2\r\n@@##_rftxt $1"
              Find RegExp SelectText "@@##_rftxt (\d+),? (\d+-\d+|\d+)(\.|,)?$"
              Replace All "_rfvn1 $1\r\n_rfpag $2"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n$6\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In: <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n$6\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In: <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n$6\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In: <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n$6\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In: <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$5\r\n@@##_rftxt $4"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n$7\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In: (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n$7\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\. In: (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n$7\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In: (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(_rfpag .+)"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n$7\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\"\, In: (.*?) <i>(.*?)</i> (.+)\r\n(_rfpy1 .+)\r\n(^[^_])"
              Replace All "_rfaut $1\r\n_rfeti $2\r\n_rfsti $4\r\n$6\r\n@@##_rftxt $3 $5"
              Find RegExp SelectText "_rfaut (.*?) \"(.*?)\" <i>(.*?)</i>"
              Replace All "@@_rfaut $1\r\n_rfeti $2\r\n_rfsti $3"
              Find RegExp SelectText "_rfaut (.*?)\. (.+) <i>(.*?)</i>"
              Replace All "@@_rfaut $1\r\n_rfeti $2\r\n_rfsti $3"
              Find RegExp SelectText "_rfaut (.*?\.) ([^\u].*?) <i>(.*?)</i>"
              Replace All "@@_rfaut $1\r\n_rfeti $2\r\n_rfsti $3"
              Find RegExp SelectText "_rfaut (.*?) <i>(.*?)</i>"
              Replace All "@@_rfaut $1\r\n_rfsti <i>$2</i>"
              Find RegExp SelectText "_rfeti \(Eds\)\.\r\n"
              Replace All ""
              Find RegExp SelectText "_rfeti \(Eds\)\r\n"
              Replace All ""
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt  "
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt (,|\.|\:|\;)"
              Replace All "_rftxt "
              Find RegExp SelectText "_rftxt(,|\.|\:|\;) "
              Replace All "_rftxt "
              Find RegExp SelectText "@##@_rftxt http"
              Replace All "_rfurl http"
              Find RegExp SelectText "@##@_rftxt doi\:"
              Replace All "_rfdoi "
              Find RegExp SelectText "^_rftxt doi ?\: ?"
              Replace All "_rfdoi "
              Find RegExp SelectText "@##@_rftxt doi :"
              Replace All "_rfdoi "
              Find RegExp SelectText "@##@_rftxt \r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt (\.|\,)\r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt(\.|\,) \r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt(\.|\,)\r\n"
              Replace All ""
              Find RegExp SelectText "@@##_rftxt (\d+): ?(\d+)\.$"
              Replace All "_rfvn1 $1\r\n_rfpag $2"
              Find RegExp SelectText "(_rfpag .+)\r\n@@##_rftxt (\d+):$"
              Replace All "_rfvn1 $2\r\n$1"
              Find RegExp SelectText "_rfpag no\r\n@##@_rftxt (\d+), (\w+-\w+|\w+)\."
              Replace All "_rfis1 $1\r\n_rfpag $2\r\n@##@_rftxt"
              Find RegExp SelectText "_rfpag p\r\n@##@_rftxt (\w+-\w+|\w+)\."
              Replace All "_rfpag $1"
              Find RegExp SelectText "@##@_rftxt (\d+) ?\((\d+)-(\d+)\): ?(\w+-\w+|\w+)\."
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4\r\n@##@"
              Find RegExp SelectText "@##@_rftxt (\d+) ?\((\d+)-(\d+)\), ?(\w+-\w+|\w+)\."
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfis2 $3\r\n_rfpag $4\r\n@##@"
              Find RegExp SelectText "@##@_rftxt (\d+)-(\d+): ?(\w+-\w+|\w+)\."
              Replace All "_rfvn1 $2\r\n_rfvn2 $3\r\n_rfpag $4\r\n@##@_rftxt"
              Find RegExp SelectText "_rfpag no\r\n@##@_rftxt (\d+)-(\d+), (\w+-\w+|\w+)\.$"
              Replace All "_rfis1 $1\r\n_rfis2 $2\r\n_rfpag $3"
              Find RegExp SelectText "_rfpag no\r\n@##@_rftxt\.(\d+)-(\d+), (\w+-\w+|\w+)\.$"
              Replace All "_rfis1 $1\r\n_rfis2 $2\r\n_rfpag $3"
              Find RegExp SelectText "_rfpag no\r\n@##@_rftxt (\d+) \((\d+)\): (\w+-\w+|\w+)\.$"
              Replace All "_rfis1 $1\r\n_rfis2 $2\r\n_rfpag $3"
              Find RegExp SelectText "@#@_rftxt (\d+)\. (\d+-\d+|\d+)\.$"
              Replace All "_rfvn1 $1\r\n_rfpag $2"
              Find RegExp SelectText "@@_rfaut (.*?) \"(.*?)\"\r\n_rfsti (.*?) (\d+): (\w+-\w+|\w+),\r\n(_rfpy1 .+)\r\n@#@_rftxt "
              Replace All "@@_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$6\r\n_rfvn1 $4\r\n_rfpag $5\r\n"
              Find RegExp SelectText "@@_rfaut (.*?) \"(.*?)\"\r\n_rfsti (.*?) (\d+) ?\((.*?)\): (\w+-\w+|\w+),\r\n(_rfpy1 .+)\r\n@#@_rftxt "
              Replace All "@@_rfaut $1\r\n_rfeti $2\r\n_rfsti $3\r\n$7\r\n_rfvn1 $4\r\n_rfis1 $5\r\n_rfpag $6\r\n"
              Find RegExp SelectText "_rfsti (.*?) (\d+) ?\((.*?)\): ?(\w+-\w+|\w+),\r\n(_rfpy1 .+)\r\n@#@_rftxt "
              Replace All "_rfsti $1\r\n$5\r\n_rfvn1 $2\r\n_rfis1 $3\r\n_rfpag $4\r\n@##@_rftxt "
              Find RegExp SelectText "_rfsti (.*?) (\d+): ?(\w+-\w+|\w+),\r\n(_rfpy1 .+)\r\n@#@_rftxt "
              Replace All "_rfsti $1\r\n$4\r\n_rfvn1 $2\r\n_rfpag $3@##@_rftxt "
              Find RegExp SelectText "@#@_rftxt (\d+) ?\((.*?)\)\: ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3\r\n@##@_rftxt"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+)\; ?(\d+) ?\((.*?)\)\: ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $2\r\n_rfis1 $3\r\n_rfpag $4\r\n@##@_rftxt $1"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+)\; ?(\d+) ?\: ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $2\r\n_rfpag $3\r\n@##@_rftxt $1"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+) (\d+-\d+|\d+)\; ?(\d+) ?\((.*?)\) ?\: ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $3\r\n_rfis1 $4\r\n_rfpag $5\r\n@##@_rftxt $1 $2"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+) (\d+-\d+|\d+)\; ?(\d+) ?\: ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $3\r\n_rfpag $4\r\n@##@_rftxt $1 $2"
              Find RegExp SelectText "@#@_rftxt (\d+) ?\: ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfpag $2\r\n@##@_rftxt"
              Find RegExp SelectText "@#@_rftxt (\d+) ?\((.*?)\)\, ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfis1 $2\r\n_rfpag $3\r\n@##@_rftxt"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+)\, ?(\d+) ?\((.*?)\)\, ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $2\r\n_rfis1 $3\r\n_rfpag $4\r\n@##@_rftxt $1"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+)\, ?(\d+) ?\, ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $2\r\n_rfpag $3\r\n@##@_rftxt $1"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+) (\d+-\d+|\d+)\, ?(\d+) ?\((.*?)\)\, ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $3\r\n_rfis1 $4\r\n_rfpag $5\r\n@##@_rftxt $1 $2"
              Find RegExp SelectText "@#@_rftxt (\w+-\w+|\w+) (\d+-\d+|\d+)\, ?(\d+) ?\, ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $3\r\n_rfpag $4\r\n@##@_rftxt $1 $2"
              Find RegExp SelectText "@#@_rftxt (\d+) ?\, ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfpag $2\r\n@##@_rftxt"
              Find RegExp SelectText "@##@_rftxt ?(\d+): ?(\w+-\w+|\w+)"
              Replace All "_rfvn1 $1\r\n_rfpag $2\r\n@##@_rftxt"
              Find RegExp SelectText "@##@_rftxt \r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt (\.|\,)\r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt(\.|\,) \r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt(\.|\,)\r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt\r\n"
              Replace All ""
              Find RegExp SelectText "@##@_rftxt http"
              Replace All "_rfurl http"
              Find RegExp SelectText "@##@_rftxt doi: "
              Replace All "_rfdoi "
              Find RegExp SelectText "@##@_rftxt doi\:"
              Replace All "_rfdoi "
              Find RegExp SelectText "@##@_rftxt doi :"
              Replace All "_rfdoi "
              Find RegExp SelectText "@@##_rftxt (.*?) (http.*?) "
              Replace All "_rfurl $2\r\n@@##_rftxt $1"
              Find RegExp SelectText "@@##_rftxt (.*?) (http.*?)$"
              Replace All "_rfurl $2\r\n@@##_rftxt $1"
              Find RegExp SelectText "_rfeti (.*?)(\.|\?) In (.+)\r\n(_rfsti .+)\r\n(_rfpy1 .+)\r\n@##@_rftxt "
              Replace All "_rfeti $1$2\r\n$4\r\n$5\r\n@##@_rftxt $3 "
              Find RegExp SelectText "@##@_rftxt (.*?) \(pp\. (\d+-\d+|\d+)\)\."
              Replace All "_rfpag $2\r\n@##@_rftxt $1 "
              Find RegExp SelectText "@##@_rftxt \(pp\. (\d+-\d+|\d+)\)\. "
              Replace All "_rfpag $1\r\n@##@_rftxt "
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.*?)\."
              Replace All "_rfsti $2\r\n$1\r\n@#@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.*?) (\d+)\:(\w+-\w+|\w+)"
              Replace All "_rfsti $2\r\n$1\r\n_rfvn1 $3\r\n_rfpag $4\r\n@##@_rftxt"
              Find RegExp SelectText "(_rfpy1 .+)\r\n@#@_rftxt (.*?) (\d+) ?\((.*?)\)\: ?(\w+-\w+|\w+)"
              Replace All "_rfsti $2\r\n$1\r\n_rfvn1 $3\r\n_rfis1 $4\r\n_rfpag $5\r\n@##@_rftxt"
              Find RegExp SelectText "_rfsti (.+)\r\n(_rfpy1 .+)\r\n@#@_rftxt In: (.*?(eds|ed)\)) (.+)\."
              Replace All "_rfeti $1\r\n_rfsti $5\r\n$2\r\n@#@_rftxt In: $3"
              Find RegExp SelectText "@##@_rftxt\. http"
              Replace All "_rfurl http"
              Find RegExp SelectText "@##@_rftxt\. http"
              Replace All "_rfurl http"
              Find RegExp SelectText "_rfsti (.+)\r\n_rfsti "
              Replace All "_rfeti $1\r\n_rfsti "
              Find RegExp SelectText "^(@|#)+_rftxt (.+) (\d+-\d+|\d+) (pp|p)\."
              Replace All "_rfpag $3\r\n_rftxt $2"
              Find RegExp SelectText "^(@|#)+_rftxt (.+) (http.*?) "
              Replace All "_rfurl $3\r\n_rftxt $2"
              Find RegExp SelectText "^(@|#)+_rftxt (.+) (http.*?)$"
              Replace All "_rfurl $3\r\n_rftxt $2"
              Find RegExp SelectText "^((@|#)+_rftxt .+) (volume|vol\.|v\.|vols\.) (\d+)"
              Replace All "_rfvn1 $4\r\n$1"
              Find RegExp SelectText "^((@|#)+_rftxt .+) (pp\.|p\.|pp|p) (\w+-\w+|\d+)"
              Replace All "_rfpag $4\r\n$1"
              Find RegExp SelectText "^((@|#)+_rftxt) (volume|vol\.|v\.|vols\.) (\d+)"
              Replace All "_rfvn1 $4\r\n$1"
              Find RegExp SelectText "^((@|#)+_rftxt) (pp\.|p\.|pp|p) (\w+-\w+|\d+)"
              Replace All "_rfpag $4\r\n$1"
              Find RegExp SelectText "^((@|#)+_rftxt .+) (http.*?) "
              Replace All "_rfurl $3\r\n$1"
              Find RegExp SelectText "^((@|#)+_rftxt .+) (http.*?)$"
              Replace All "_rfurl $3\r\n$1"
              Find RegExp SelectText "^((@|#)+_rftxt .+) (www.*?) "
              Replace All "_rfurl $3\r\n$1"
              Find RegExp SelectText "^((@|#)+_rftxt .+) (www.*?)$"
              Replace All "_rfurl $3\r\n$1"
              Find RegExp SelectText "^_rfurl ((http|www).*?) "
              Replace All "_rfurl $1\r\n@@##_rftxt "
              Find RegExp SelectText "^@##@_rftxt ISSN"
              Replace All "_rfissn"
              Find RegExp SelectText "_rfsti (.+)\r\n_rfpy1 (.+)\r\n@#@_rftxt ([A-z].*?) (\d+): (\d+-\d+|\d+)\.$"
              Replace All "_rfeti $1\r\n_rfsti $3\r\n_rfpy1 $2\r\n_rfvn1 $4\r\n_rfpag $5"
              Find RegExp SelectText "^(_rfurl .+)\r\n(_rfpag .+)$"
              Replace All "$2\r\n$1"
              Find RegExp SelectText "^@@##_rftxt (http.+)$"
              Replace All "_rfurl $1"
              Find RegExp SelectText "^@#@_rftxt (http.+)$"
              Replace All "_rfurl $1"
              Find RegExp SelectText "(@@##@@|@@@###|@##@|@@##|@@@|#@#|@#@|@#|#@)"
              Replace All ""
              Find RegExp SelectText "_rfsti(.*?)(www|http|doi:)(.+)([\s\S]+?)_rftxt"
              Replace All "_rfsti\1\4_rftxt \2\3."
              Find RegExp SelectText "_rfsti \r\n"
              Replace All ""
              Find RegExp SelectText "_rf(e|s)ti (.*?) (i|I)n (.*?)\((Eds\.|eds\.|eds|Ed\.|ed\.)\)([\s\S]+?)_rftxt"
              Replace All "_rf\1ti \2\6_rftxt \3n \4(\5)"
              Find RegExp SelectText "_rftxt(.*?)(\d+) ?\((\d+)\)\,? (\d+-\d+|\d+)\.$"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rfpag \4\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?)(\d+)\, (\d+)\: (\d+-\d+|\d+)\."
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rfpag \4\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?) (\d+) ?\((\d+)\)\:(\d+-\d+|\d+)"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rfpag \4\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?) (\d+) ?\((\d+)\)"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?)(\d+) ?\((\d+) ?(Part|pt|Pt|pT) ?(\d+)\)"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rfit PART \5\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?)(\d+) ?\((pt|Pt|pT) ?(\d+)\)"
              Replace All "_rfvn1 \2\r\n_rfit PART \4\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?)(\d+) ?\((\d+) ?(Supplement|Suppl\.|Suppl|Supp\.|Supp|sup|S\.|s\.) ?(\d+)\)"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rfit SUPPL. \5\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?)(\d+) ?\((Supplement|Suppl\.|Suppl|Supp\.|Supp|sup|S\.|s\.) ?(\d+)\)"
              Replace All "_rfvn1 \2\r\n_rfit SUPPL. \4\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?)(\d+) ?\((\d+)-(\d+)(.+)"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rfis2 \4\r\n_rftxt\1 \5"
              Find RegExp SelectText "_rftxt(.*?)(\d+)\,? \(?(\d+)/(\d+)\)?\,?"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rfis2 \4\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?)\(?(\d+)/(\d+)\)?\,"
              Replace All "_rfis1 \2\r\n_rfis2 \3\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?) (\d+) ?\((\d+-\d+|\d+|\d+|\w\d+|\d+\w|\d+/\d+)\)"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?)(\d+)-?(\u+|\l+)\:(\d+-\d+|\d+)"
              Replace All "_rfvn1 \2\r\n_rfvt \3\r\n_rfpag \4\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?)(\d+)-?(\u+|\l+)\((.*?)\)"
              Replace All "_rfvn1 \2\r\n_rfvt \3\r\n_rfis1 \4\r\n_rftxt\1"
              Find RegExp SelectText "_rfis1 (\d+)\/(\d+)"
              Replace All "_rfis1 \1\r\n_rfis2 \2"
              Find RegExp SelectText "_rfis1 (\d+)-(\d+)"
              Replace All "_rfis1 \1\r\n_rfis2 \2"
              Find RegExp SelectText "_rftxt (.*?)(\d+)\-(\d+):((\d+-\d+)|((\l|\u)\d+)-((\l|\u)\d+)|((\l|\u)\d+))"
              Replace All "_rfvn1 \2\r\n_rfvn2 \3\r\n_rfpag \4\r\n_rftxt \1 "
              Find RegExp SelectText "_rftxt(.*?)(\d+)\:? ((\d+-\d+)|((\l|\u)\d+)-((\l|\u)\d+)|((\l|\u)\d+))"
              Replace All "_rfvn1 \2\r\n_rfpag \3\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?) (\d+)\:? (\d+-\d+)"
              Replace All "_rfvn1 \2\r\n_rfpag \3\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?) (\d+)\:(\d+-\d+)"
              Replace All "_rfvn1 \2\r\n_rfpag \3\r\n_rftxt\1 "
              Find RegExp SelectText "(_rfpy1.+)\r\n_rftxt(.*?) (\d+)\,? (\d+-\d+)\.$"
              Replace All "\1\r\n_rfvn1 \3\r\n_rfpag \4\r\n_rftxt\2"
              Find RegExp SelectText "_rftxt(.*?) (\d+)\.? (\d+-\d+)\.$"
              Replace All "_rfvn1 \2\r\n_rfpag \3\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?) (\d+)\:(\d+|\w\d+|\d+\w)"
              Replace All "_rfvn1 \2\r\n_rfis1 \3\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?)(volumes|volume|vol\.|v\.|vols\.) (\d+)"
              Replace All "_rfvn1 \3\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?) (\d+) (volumes|volume|vol\.|v\.|vols\.)"
              Replace All "_rfvn1 \2\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?)(www|http|doi:)(.*?) "
              Replace All "_rfurl \2\3\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?) (\d+)\, ((\d+-\d+)|((\l|\u)\d+)-((\l|\u)\d+)|((\l|\u)\d+\.))\."
              Replace All "_rfvn1 \2\r\n_rfpag \3\r\n_rftxt\1 "
              Find RegExp SelectText "_rftxt(.*?) ((\d+-\d+)|((\l|\u)\d+)-((\l|\u)\d+)|((\l|\u)\d+\.))\."
              Replace All "_rfpag \2\r\n_rftxt\1 "
              Find RegExp SelectText "_rfurl (.+)\r\n_rfpag (.+)"
              Replace All "_rfpag \2\r\n_rfurl \1"
              Find RegExp SelectText "_rftxt(.*?)(\(pp\. ?\)|\(pp\)|pp\.|pp|p\.) ?(\d+-\d+|\d+)"
              Replace All "_rfpag \3\r\n_rftxt\1"
              Find RegExp SelectText "_rftxt(.*?)(\(pp\. ?\)|\(pp\)|pp\.|pp )(.+)"
              Replace All "_rftxt\1\3"
              Find RegExp SelectText "_rfpy1 (\d+)-(\d+)-(\d+)"
              Replace All "_rfpy1 \1\r\n_rfpy2 \3"
              Find RegExp SelectText "_rfpy1 (\d+)-(\d+)"
              Replace All "_rfpy1 \2\r\n_rfpy2 \1"
              Find RegExp SelectText "_rfpy1 (\d+)/(\d+)"
              Replace All "_rfpy1 \1\r\n_rfpy2 \2"
              Find RegExp SelectText "_rfdoi (.*?) (.+)\r\n_rftxt"
              Replace All "_rfdoi \1\r\n_rftxt \2"
              Find RegExp SelectText "_rfdoi (.*?) (.+)"
              Replace All "_rfdoi \1\r\n_rftxt \2"
              Find RegExp SelectText "^_rfurl ((http|www).*?) "
              Replace All "_rfurl $1\r\n_rftxt "
              Find RegExp SelectText "( \. \.| \. | , )"
              Replace All " "
              Find RegExp SelectText "(\.:|\.:;|\.;|\.;;| | ,|, )$"
              Replace All "."
              Find RegExp SelectText "(\. \.| \.)$"
              Replace All "."
              Find RegExp SelectText "(  |   |    |     |      |       |        )"
              Replace All " "
              Find RegExp SelectText "_rftxt (.*?)\( ?\)"
              Replace All "_rftxt \1"
              Find RegExp SelectText "_rftxt\r\n"
              Replace All "\r\n"
              Find RegExp SelectText "^_rfis1 (\d+) (Supplement|Suppl\.|suppl\.|Suppl|suppl|Supp|supp|Supp\.|supp\.|sup)"
              Replace All "_rfis1 \1\r\n_rfit SUPPL."
              Find RegExp SelectText "^_rfis1 (Supplement|Suppl\.|Suppl|Supp\.|Supp|sup|S\.|s\.)"
              Replace All "_rfit SUPPL. "
              Find RegExp SelectText "^_rfis1 (Part|pt|Pt|pT)"
              Replace All "_rfit PART"
              Find RegExp SelectText "^_rfis1 (\d+) ?(Part|pt|Pt|pT)"
              Replace All "_rfis1 \1\r\n_rfit PART"
              Find RegExp SelectText "_rfis1 (\u|\l+)"
              Replace All "_rfit \1"
              Find RegExp SelectText "_rfvn1 (\d+)(\u|\l+)"
              Replace All "_rfvn1 \1\r\n_rfvt \2"
              Find RegExp SelectText "\,\."
              Replace All "."
              Find RegExp SelectText " $"
              Replace All ""
              Find RegExp SelectText "(  |   |    |     |      |       |        )"
              Replace All " "
              Find RegExp SelectText "( \. \.| \. | , )"
              Replace All " "

              6,629551
              Grand MasterGrand Master
              6,629551

                17:35 - May 29#7

                I executed first on the list of macro commands a Perl regular expression replace all searching for \\(?!") and replacing all found backslashes not followed by a double quote with \\\\ (two backslashes).

                Then I executed next one more Perl regular expression replace all searching for Find RegExp SelectText (".*")\r\nReplace All (".*")$ and using as replace expression six spaces (indent spaces) and UltraEdit.activeDocument.findReplace.replace(\1,\2);

                Finally was inserted the additional commands above and below the replace scripting commands.

                Code: Select all

                if (UltraEdit.document.length > 0)  // Is any file opened?
                {
                   if (UltraEdit.activeDocument.isSel())
                   {
                      // Define environment for this script.
                      UltraEdit.insertMode();
                      if (typeof(UltraEdit.columnModeOff) == "function") UltraEdit.columnModeOff();
                      else if (typeof(UltraEdit.activeDocument.columnModeOff) == "function") UltraEdit.activeDocument.columnModeOff();
                
                      // Define the parameters for case-sensitive (faster) Perl regular
                      // expression replace all executed on the entire file contents.
                      UltraEdit.perlReOn();
                      UltraEdit.activeDocument.findReplace.mode=1;
                //      UltraEdit.activeDocument.findReplace.selectText=true;
                      UltraEdit.activeDocument.findReplace.matchCase=false;
                      UltraEdit.activeDocument.findReplace.matchWord=false;
                      UltraEdit.activeDocument.findReplace.regExp=true;
                      UltraEdit.activeDocument.findReplace.searchDown=true;
                      if (typeof(UltraEdit.activeDocument.findReplace.searchInColumn) == "boolean")
                      {
                         UltraEdit.activeDocument.findReplace.searchInColumn=false;
                      }
                      UltraEdit.activeDocument.findReplace.preserveCase=false;
                      UltraEdit.activeDocument.findReplace.replaceAll=true;
                      UltraEdit.activeDocument.findReplace.replaceInAllOpen=false;
                
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) ?\\((\\d{4}\\w?)\\)","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\(?(\\d{4}) \\[(\\d{4})\\]\\)?\\.?","_rfaut $1\\r\\n_rfpy1 $2-$3\\r\\n@#@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\((\\d{4}\\l?)\\,? (.*?)\\)","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) (\\d{4}\\w?)","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) (\\d{4})\\.","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\(?(\\d{4}\\/\\d{4})\\)?","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\((.*?) (\\d{4}\\w?)\\)","_rfaut $1\\r\\n_rfpy1 $3\\r\\n@#@_rftxt (\\2)");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) (\\d{4}\\w?)\\. ","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\((\\d{4}\\w?) (.*?)\\)","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\((\\d{4}\\w?), (\\w+ \\w+)\\)","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\((\\d{4}\\w?), (\\w+)\\)","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\[(\\d{4}-\\d{4}|\\d{4})\\] (\\d{4})","_rfaut $1\\r\\n_rfpy1 $2-$3\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\(?(\\d{4}-\\d{4})\\)?","_rfaut $1\\r\\n_rfpy1 $2\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("##_rftxt (.*?) \\((\\d{4})\\) (\\d{4})","_rfaut $1\\r\\n_rfpy1 $2-$3\\r\\n@#@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.*?)(\\.|\\?) In: (.*?) <i>(.*?)</i>","_rfeti $2$3\\r\\n_rfsti $5\\r\\n$1\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.*?)(\\.|\\?) In: <i>(.*?)</i>","_rfeti $2$3\\r\\n_rfsti $4\\r\\n$1\\r\\n@@##_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.*?)' in (.*?) <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $4\\r\\n$1\\r\\n@@##_rftxt $3");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.*?)', in (.*?) <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $4\\r\\n$1\\r\\n@@##_rftxt $3");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.*?)'\\. in (.*?) <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $4\\r\\n$1\\r\\n@@##_rftxt $3");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.*?)'\\. in\\: (.*?) <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $4\\r\\n$1\\r\\n@@##_rftxt $3");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt \"(.*?)\" In <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@@##_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.*?)(\\.|\\?) In <i>(.*?)</i>","_rfeti $2$3\\r\\n_rfsti $4\\r\\n$1\\r\\n@@##_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\", <i>(.*?)</i>","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. <i>(.*?)</i>","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (.+) (\\d+-\\d+)\\.$","_rfpag $2\\r\\n@@##_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (.*?) (http.*?) ","_rfurl $2\\r\\n@@##_rftxt $1 ");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (.*?) (http.*?)$","_rfurl $2\\r\\n@@##_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.+)', <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.+)'\\. <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.+)' <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt \"(.+)\", <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt \"(.+)\"\\. <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt \"(.+)\" <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt \"(.*?)\" <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.+)(\\.|\\?) <i>(.*?)</i>","_rfeti $2$3\\r\\n_rfsti $4\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.+) <i>(.*?)</i>","_rfeti $2\\r\\n_rfsti $3\\r\\n$1\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt <i>(.*?)</i>","_rfsti $2\\r\\n$1\\r\\n@@##_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt vol\\. (\\w+), no\\. (\\w+), (pp\\.|p\\.) (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $4");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (vol|volume|Vols)?\\.? (\\d+), no\\. (\\w+), (pp\\.|p\\.) (\\w+-\\w+|\\w+)\\.$","_rfvn1 $2\\r\\n_rfis1 $3\\r\\n_rfpag $5");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt vol\\. (\\w+), no\\. (\\w+), (pp\\.|p\\.) (\\w+-\\w+|\\w+)\\.","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $4\\r\\n@##@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt vol\\. (\\w+), no\\. (\\w+), (pp\\.|p\\.) (\\w+-\\w+|\\w+)\\,","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $4\\r\\n@##@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt vol\\. (\\w+), (pp\\.|p\\.) (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt vol\\. (\\w+), (pp\\.|p\\.) (\\w+-\\w+|\\w+)\\.","_rfvn1 $1\\r\\n_rfpag $3\\r\\n@##@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt vol\\. (\\w+), (pp\\.|p\\.) (\\w+-\\w+|\\w+)\\,","_rfvn1 $1\\r\\n_rfpag $3\\r\\n@##@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+):(\\d+), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+):(\\d+),(\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+)\\((\\d+)\\): (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfpag $2");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+): ?(\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfpag $2");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+):(\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfpag $2");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+): ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfpag $2\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) \\((\\d+)-(\\d+)\\), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+)\\((\\d+)-(\\d+)\\), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) ?\\((\\d+)\\), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) ?\\((\\d+)\\), (\\w+-\\w+|\\w+)\\.","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) \\((\\d+)-(\\d+)\\): (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+)\\((\\d+)-(\\d+)\\): (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) ?\\((.*?)\\): ?(\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+)\\((.*?)\\), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) ?\\((.*?)\\): ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) ?\\((.*?)\\), ?(\\d+-\\d+|\\d+)","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+), ?(\\w+-\\w+|\\w+)$","_rfvn1 $1\\r\\n_rfpag $2\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\((.*?)\\), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\((.*?)\\), (\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\((\\d+)-(\\d+)\\), (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\((\\d+)-(\\d+)\\), (\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4\\r\\n@@##_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+), ?(\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfpag $2");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+), ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfpag $2\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\d+)\\.$","_rfvn1 $1");
                      UltraEdit.activeDocument.findReplace.replace("_rfvn1 $1\\r\\n_rfvn2 $2","_rfis1 (\\d+)-(\\d+)");
                      UltraEdit.activeDocument.findReplace.replace("_rfis1 $1\\r\\n_rfis2 $2","_rfpag $1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt '(.*?)'","_rfsti $2\\r\\n$1\\r\\n@@@###_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@@@###_rftxt (.*?) (http.*?) ","_rfurl $2\\r\\n@@@###_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@@@###_rftxt (.*?) (http.*?)$","_rfurl $2\\r\\n@@@###_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (\\d+), no. (\\d+): (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (\\d+)\\. no. (\\d+): (\\w+-\\w+|\\w+)\\.$","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (.*?) (\\d+-\\d+)\\.","_rfpag $2\\r\\n@@##_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt \"(.*?)\" ","_rfsti $2\\r\\n$1\\r\\n@@##_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (.*?) (http.*?) ","_rfurl $2\\r\\n@@##_rftxt $1 ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (.*?) (http.*?)$","_rfurl $2\\r\\n@@##_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (\\d+),? (\\d+-\\d+|\\d+)(\\.|,)?$","_rfvn1 $1\\r\\n_rfpag $2");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n$6\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In: <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n$6\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In: <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n$6\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In: <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n$6\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In: <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$5\\r\\n@@##_rftxt $4");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n$7\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In: (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n$7\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\. In: (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n$7\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In: (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(_rfpag .+)","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n$7\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\"\\, In: (.*?) <i>(.*?)</i> (.+)\\r\\n(_rfpy1 .+)\\r\\n(^[^_])","_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $4\\r\\n$6\\r\\n@@##_rftxt $3 $5");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) \"(.*?)\" <i>(.*?)</i>","@@_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?)\\. (.+) <i>(.*?)</i>","@@_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?\\.) ([^\\u].*?) <i>(.*?)</i>","@@_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3");
                      UltraEdit.activeDocument.findReplace.replace("_rfaut (.*?) <i>(.*?)</i>","@@_rfaut $1\\r\\n_rfsti <i>$2</i>");
                      UltraEdit.activeDocument.findReplace.replace("_rfeti \\(Eds\\)\\.\\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("_rfeti \\(Eds\\)\\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt  ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (,|\\.|\\:|\\;)","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(,|\\.|\\:|\\;) ","_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt http","_rfurl http");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt doi\\:","_rfdoi ");
                      UltraEdit.activeDocument.findReplace.replace("^_rftxt doi ?\\: ?","_rfdoi ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt doi :","_rfdoi ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt \\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\.|\\,)\\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt(\\.|\\,) \\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt(\\.|\\,)\\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (\\d+): ?(\\d+)\\.$","_rfvn1 $1\\r\\n_rfpag $2");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpag .+)\\r\\n@@##_rftxt (\\d+):$","_rfvn1 $2\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("_rfpag no\\r\\n@##@_rftxt (\\d+), (\\w+-\\w+|\\w+)\\.","_rfis1 $1\\r\\n_rfpag $2\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("_rfpag p\\r\\n@##@_rftxt (\\w+-\\w+|\\w+)\\.","_rfpag $1");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) ?\\((\\d+)-(\\d+)\\): ?(\\w+-\\w+|\\w+)\\.","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4\\r\\n@##@");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+) ?\\((\\d+)-(\\d+)\\), ?(\\w+-\\w+|\\w+)\\.","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfis2 $3\\r\\n_rfpag $4\\r\\n@##@");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\d+)-(\\d+): ?(\\w+-\\w+|\\w+)\\.","_rfvn1 $2\\r\\n_rfvn2 $3\\r\\n_rfpag $4\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("_rfpag no\\r\\n@##@_rftxt (\\d+)-(\\d+), (\\w+-\\w+|\\w+)\\.$","_rfis1 $1\\r\\n_rfis2 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("_rfpag no\\r\\n@##@_rftxt\\.(\\d+)-(\\d+), (\\w+-\\w+|\\w+)\\.$","_rfis1 $1\\r\\n_rfis2 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("_rfpag no\\r\\n@##@_rftxt (\\d+) \\((\\d+)\\): (\\w+-\\w+|\\w+)\\.$","_rfis1 $1\\r\\n_rfis2 $2\\r\\n_rfpag $3");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+)\\. (\\d+-\\d+|\\d+)\\.$","_rfvn1 $1\\r\\n_rfpag $2");
                      UltraEdit.activeDocument.findReplace.replace("@@_rfaut (.*?) \"(.*?)\"\\r\\n_rfsti (.*?) (\\d+): (\\w+-\\w+|\\w+),\\r\\n(_rfpy1 .+)\\r\\n@#@_rftxt ","@@_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$6\\r\\n_rfvn1 $4\\r\\n_rfpag $5\\r\\n");
                      UltraEdit.activeDocument.findReplace.replace("@@_rfaut (.*?) \"(.*?)\"\\r\\n_rfsti (.*?) (\\d+) ?\\((.*?)\\): (\\w+-\\w+|\\w+),\\r\\n(_rfpy1 .+)\\r\\n@#@_rftxt ","@@_rfaut $1\\r\\n_rfeti $2\\r\\n_rfsti $3\\r\\n$7\\r\\n_rfvn1 $4\\r\\n_rfis1 $5\\r\\n_rfpag $6\\r\\n");
                      UltraEdit.activeDocument.findReplace.replace("_rfsti (.*?) (\\d+) ?\\((.*?)\\): ?(\\w+-\\w+|\\w+),\\r\\n(_rfpy1 .+)\\r\\n@#@_rftxt ","_rfsti $1\\r\\n$5\\r\\n_rfvn1 $2\\r\\n_rfis1 $3\\r\\n_rfpag $4\\r\\n@##@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("_rfsti (.*?) (\\d+): ?(\\w+-\\w+|\\w+),\\r\\n(_rfpy1 .+)\\r\\n@#@_rftxt ","_rfsti $1\\r\\n$4\\r\\n_rfvn1 $2\\r\\n_rfpag $3@##@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\((.*?)\\)\\: ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+)\\; ?(\\d+) ?\\((.*?)\\)\\: ?(\\w+-\\w+|\\w+)","_rfvn1 $2\\r\\n_rfis1 $3\\r\\n_rfpag $4\\r\\n@##@_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+)\\; ?(\\d+) ?\\: ?(\\w+-\\w+|\\w+)","_rfvn1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+) (\\d+-\\d+|\\d+)\\; ?(\\d+) ?\\((.*?)\\) ?\\: ?(\\w+-\\w+|\\w+)","_rfvn1 $3\\r\\n_rfis1 $4\\r\\n_rfpag $5\\r\\n@##@_rftxt $1 $2");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+) (\\d+-\\d+|\\d+)\\; ?(\\d+) ?\\: ?(\\w+-\\w+|\\w+)","_rfvn1 $3\\r\\n_rfpag $4\\r\\n@##@_rftxt $1 $2");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\: ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfpag $2\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\((.*?)\\)\\, ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfis1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+)\\, ?(\\d+) ?\\((.*?)\\)\\, ?(\\w+-\\w+|\\w+)","_rfvn1 $2\\r\\n_rfis1 $3\\r\\n_rfpag $4\\r\\n@##@_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+)\\, ?(\\d+) ?\\, ?(\\w+-\\w+|\\w+)","_rfvn1 $2\\r\\n_rfpag $3\\r\\n@##@_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+) (\\d+-\\d+|\\d+)\\, ?(\\d+) ?\\((.*?)\\)\\, ?(\\w+-\\w+|\\w+)","_rfvn1 $3\\r\\n_rfis1 $4\\r\\n_rfpag $5\\r\\n@##@_rftxt $1 $2");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\w+-\\w+|\\w+) (\\d+-\\d+|\\d+)\\, ?(\\d+) ?\\, ?(\\w+-\\w+|\\w+)","_rfvn1 $3\\r\\n_rfpag $4\\r\\n@##@_rftxt $1 $2");
                      UltraEdit.activeDocument.findReplace.replace("@#@_rftxt (\\d+) ?\\, ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfpag $2\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt ?(\\d+): ?(\\w+-\\w+|\\w+)","_rfvn1 $1\\r\\n_rfpag $2\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt \\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (\\.|\\,)\\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt(\\.|\\,) \\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt(\\.|\\,)\\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt\\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt http","_rfurl http");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt doi: ","_rfdoi ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt doi\\:","_rfdoi ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt doi :","_rfdoi ");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (.*?) (http.*?) ","_rfurl $2\\r\\n@@##_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("@@##_rftxt (.*?) (http.*?)$","_rfurl $2\\r\\n@@##_rftxt $1");
                      UltraEdit.activeDocument.findReplace.replace("_rfeti (.*?)(\\.|\\?) In (.+)\\r\\n(_rfsti .+)\\r\\n(_rfpy1 .+)\\r\\n@##@_rftxt ","_rfeti $1$2\\r\\n$4\\r\\n$5\\r\\n@##@_rftxt $3 ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt (.*?) \\(pp\\. (\\d+-\\d+|\\d+)\\)\\.","_rfpag $2\\r\\n@##@_rftxt $1 ");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt \\(pp\\. (\\d+-\\d+|\\d+)\\)\\. ","_rfpag $1\\r\\n@##@_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.*?)\\.","_rfsti $2\\r\\n$1\\r\\n@#@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.*?) (\\d+)\\:(\\w+-\\w+|\\w+)","_rfsti $2\\r\\n$1\\r\\n_rfvn1 $3\\r\\n_rfpag $4\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1 .+)\\r\\n@#@_rftxt (.*?) (\\d+) ?\\((.*?)\\)\\: ?(\\w+-\\w+|\\w+)","_rfsti $2\\r\\n$1\\r\\n_rfvn1 $3\\r\\n_rfis1 $4\\r\\n_rfpag $5\\r\\n@##@_rftxt");
                      UltraEdit.activeDocument.findReplace.replace("_rfsti (.+)\\r\\n(_rfpy1 .+)\\r\\n@#@_rftxt In: (.*?(eds|ed)\\)) (.+)\\.","_rfeti $1\\r\\n_rfsti $5\\r\\n$2\\r\\n@#@_rftxt In: $3");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt\\. http","_rfurl http");
                      UltraEdit.activeDocument.findReplace.replace("@##@_rftxt\\. http","_rfurl http");
                      UltraEdit.activeDocument.findReplace.replace("_rfsti (.+)\\r\\n_rfsti ","_rfeti $1\\r\\n_rfsti ");
                      UltraEdit.activeDocument.findReplace.replace("^(@|#)+_rftxt (.+) (\\d+-\\d+|\\d+) (pp|p)\\.","_rfpag $3\\r\\n_rftxt $2");
                      UltraEdit.activeDocument.findReplace.replace("^(@|#)+_rftxt (.+) (http.*?) ","_rfurl $3\\r\\n_rftxt $2");
                      UltraEdit.activeDocument.findReplace.replace("^(@|#)+_rftxt (.+) (http.*?)$","_rfurl $3\\r\\n_rftxt $2");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt .+) (volume|vol\\.|v\\.|vols\\.) (\\d+)","_rfvn1 $4\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt .+) (pp\\.|p\\.|pp|p) (\\w+-\\w+|\\d+)","_rfpag $4\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt) (volume|vol\\.|v\\.|vols\\.) (\\d+)","_rfvn1 $4\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt) (pp\\.|p\\.|pp|p) (\\w+-\\w+|\\d+)","_rfpag $4\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt .+) (http.*?) ","_rfurl $3\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt .+) (http.*?)$","_rfurl $3\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt .+) (www.*?) ","_rfurl $3\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^((@|#)+_rftxt .+) (www.*?)$","_rfurl $3\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^_rfurl ((http|www).*?) ","_rfurl $1\\r\\n@@##_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("^@##@_rftxt ISSN","_rfissn");
                      UltraEdit.activeDocument.findReplace.replace("_rfsti (.+)\\r\\n_rfpy1 (.+)\\r\\n@#@_rftxt ([A-z].*?) (\\d+): (\\d+-\\d+|\\d+)\\.$","_rfeti $1\\r\\n_rfsti $3\\r\\n_rfpy1 $2\\r\\n_rfvn1 $4\\r\\n_rfpag $5");
                      UltraEdit.activeDocument.findReplace.replace("^(_rfurl .+)\\r\\n(_rfpag .+)$","$2\\r\\n$1");
                      UltraEdit.activeDocument.findReplace.replace("^@@##_rftxt (http.+)$","_rfurl $1");
                      UltraEdit.activeDocument.findReplace.replace("^@#@_rftxt (http.+)$","_rfurl $1");
                      UltraEdit.activeDocument.findReplace.replace("(@@##@@|@@@###|@##@|@@##|@@@|#@#|@#@|@#|#@)","");
                      UltraEdit.activeDocument.findReplace.replace("_rfsti(.*?)(www|http|doi:)(.+)([\\s\\S]+?)_rftxt","_rfsti\\1\\4_rftxt \\2\\3.");
                      UltraEdit.activeDocument.findReplace.replace("_rfsti \\r\\n","");
                      UltraEdit.activeDocument.findReplace.replace("_rf(e|s)ti (.*?) (i|I)n (.*?)\\((Eds\\.|eds\\.|eds|Ed\\.|ed\\.)\\)([\\s\\S]+?)_rftxt","_rf\\1ti \\2\\6_rftxt \\3n \\4(\\5)");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+) ?\\((\\d+)\\)\\,? (\\d+-\\d+|\\d+)\\.$","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rfpag \\4\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+)\\, (\\d+)\\: (\\d+-\\d+|\\d+)\\.","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rfpag \\4\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+) ?\\((\\d+)\\)\\:(\\d+-\\d+|\\d+)","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rfpag \\4\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+) ?\\((\\d+)\\)","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+) ?\\((\\d+) ?(Part|pt|Pt|pT) ?(\\d+)\\)","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rfit PART \\5\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+) ?\\((pt|Pt|pT) ?(\\d+)\\)","_rfvn1 \\2\\r\\n_rfit PART \\4\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+) ?\\((\\d+) ?(Supplement|Suppl\\.|Suppl|Supp\\.|Supp|sup|S\\.|s\\.) ?(\\d+)\\)","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rfit SUPPL. \\5\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+) ?\\((Supplement|Suppl\\.|Suppl|Supp\\.|Supp|sup|S\\.|s\\.) ?(\\d+)\\)","_rfvn1 \\2\\r\\n_rfit SUPPL. \\4\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+) ?\\((\\d+)-(\\d+)(.+)","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rfis2 \\4\\r\\n_rftxt\\1 \\5");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+)\\,? \\(?(\\d+)/(\\d+)\\)?\\,?","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rfis2 \\4\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)\\(?(\\d+)/(\\d+)\\)?\\,","_rfis1 \\2\\r\\n_rfis2 \\3\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+) ?\\((\\d+-\\d+|\\d+|\\d+|\\w\\d+|\\d+\\w|\\d+/\\d+)\\)","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+)-?(\\u+|\\l+)\\:(\\d+-\\d+|\\d+)","_rfvn1 \\2\\r\\n_rfvt \\3\\r\\n_rfpag \\4\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+)-?(\\u+|\\l+)\\((.*?)\\)","_rfvn1 \\2\\r\\n_rfvt \\3\\r\\n_rfis1 \\4\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rfis1 (\\d+)\\/(\\d+)","_rfis1 \\1\\r\\n_rfis2 \\2");
                      UltraEdit.activeDocument.findReplace.replace("_rfis1 (\\d+)-(\\d+)","_rfis1 \\1\\r\\n_rfis2 \\2");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (.*?)(\\d+)\\-(\\d+):((\\d+-\\d+)|((\\l|\\u)\\d+)-((\\l|\\u)\\d+)|((\\l|\\u)\\d+))","_rfvn1 \\2\\r\\n_rfvn2 \\3\\r\\n_rfpag \\4\\r\\n_rftxt \\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\d+)\\:? ((\\d+-\\d+)|((\\l|\\u)\\d+)-((\\l|\\u)\\d+)|((\\l|\\u)\\d+))","_rfvn1 \\2\\r\\n_rfpag \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+)\\:? (\\d+-\\d+)","_rfvn1 \\2\\r\\n_rfpag \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+)\\:(\\d+-\\d+)","_rfvn1 \\2\\r\\n_rfpag \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("(_rfpy1.+)\\r\\n_rftxt(.*?) (\\d+)\\,? (\\d+-\\d+)\\.$","\\1\\r\\n_rfvn1 \\3\\r\\n_rfpag \\4\\r\\n_rftxt\\2");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+)\\.? (\\d+-\\d+)\\.$","_rfvn1 \\2\\r\\n_rfpag \\3\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+)\\:(\\d+|\\w\\d+|\\d+\\w)","_rfvn1 \\2\\r\\n_rfis1 \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(volumes|volume|vol\\.|v\\.|vols\\.) (\\d+)","_rfvn1 \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+) (volumes|volume|vol\\.|v\\.|vols\\.)","_rfvn1 \\2\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(www|http|doi:)(.*?) ","_rfurl \\2\\3\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) (\\d+)\\, ((\\d+-\\d+)|((\\l|\\u)\\d+)-((\\l|\\u)\\d+)|((\\l|\\u)\\d+\\.))\\.","_rfvn1 \\2\\r\\n_rfpag \\3\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?) ((\\d+-\\d+)|((\\l|\\u)\\d+)-((\\l|\\u)\\d+)|((\\l|\\u)\\d+\\.))\\.","_rfpag \\2\\r\\n_rftxt\\1 ");
                      UltraEdit.activeDocument.findReplace.replace("_rfurl (.+)\\r\\n_rfpag (.+)","_rfpag \\2\\r\\n_rfurl \\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\(pp\\. ?\\)|\\(pp\\)|pp\\.|pp|p\\.) ?(\\d+-\\d+|\\d+)","_rfpag \\3\\r\\n_rftxt\\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt(.*?)(\\(pp\\. ?\\)|\\(pp\\)|pp\\.|pp )(.+)","_rftxt\\1\\3");
                      UltraEdit.activeDocument.findReplace.replace("_rfpy1 (\\d+)-(\\d+)-(\\d+)","_rfpy1 \\1\\r\\n_rfpy2 \\3");
                      UltraEdit.activeDocument.findReplace.replace("_rfpy1 (\\d+)-(\\d+)","_rfpy1 \\2\\r\\n_rfpy2 \\1");
                      UltraEdit.activeDocument.findReplace.replace("_rfpy1 (\\d+)/(\\d+)","_rfpy1 \\1\\r\\n_rfpy2 \\2");
                      UltraEdit.activeDocument.findReplace.replace("_rfdoi (.*?) (.+)\\r\\n_rftxt","_rfdoi \\1\\r\\n_rftxt \\2");
                      UltraEdit.activeDocument.findReplace.replace("_rfdoi (.*?) (.+)","_rfdoi \\1\\r\\n_rftxt \\2");
                      UltraEdit.activeDocument.findReplace.replace("^_rfurl ((http|www).*?) ","_rfurl $1\\r\\n_rftxt ");
                      UltraEdit.activeDocument.findReplace.replace("( \\. \\.| \\. | , )"," ");
                      UltraEdit.activeDocument.findReplace.replace("(\\.:|\\.:;|\\.;|\\.;;| | ,|, )$",".");
                      UltraEdit.activeDocument.findReplace.replace("(\\. \\.| \\.)$",".");
                      UltraEdit.activeDocument.findReplace.replace("(  |   |    |     |      |       |        )"," ");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt (.*?)\\( ?\\)","_rftxt \\1");
                      UltraEdit.activeDocument.findReplace.replace("_rftxt\\r\\n","\\r\\n");
                      UltraEdit.activeDocument.findReplace.replace("^_rfis1 (\\d+) (Supplement|Suppl\\.|suppl\\.|Suppl|suppl|Supp|supp|Supp\\.|supp\\.|sup)","_rfis1 \\1\\r\\n_rfit SUPPL.");
                      UltraEdit.activeDocument.findReplace.replace("^_rfis1 (Supplement|Suppl\\.|Suppl|Supp\\.|Supp|sup|S\\.|s\\.)","_rfit SUPPL. ");
                      UltraEdit.activeDocument.findReplace.replace("^_rfis1 (Part|pt|Pt|pT)","_rfit PART");
                      UltraEdit.activeDocument.findReplace.replace("^_rfis1 (\\d+) ?(Part|pt|Pt|pT)","_rfis1 \\1\\r\\n_rfit PART");
                      UltraEdit.activeDocument.findReplace.replace("_rfis1 (\\u|\\l+)","_rfit \\1");
                      UltraEdit.activeDocument.findReplace.replace("_rfvn1 (\\d+)(\\u|\\l+)","_rfvn1 \\1\\r\\n_rfvt \\2");
                      UltraEdit.activeDocument.findReplace.replace("\\,\\.",".");
                      UltraEdit.activeDocument.findReplace.replace(" $","");
                      UltraEdit.activeDocument.findReplace.replace("(  |   |    |     |      |       |        )"," ");
                      UltraEdit.activeDocument.findReplace.replace("( \\. \\.| \\. | , )"," ");
                   }
                   else
                   {
                      UltraEdit.outputWindow.clear();
                      UltraEdit.outputWindow.showStatus=false;
                      UltraEdit.outputWindow.write("There is nothing selected in the file: " + UltraEdit.activeDocument.path);
                      if (!UltraEdit.outputWindow.visible)
                      {
                         UltraEdit.outputWindow.showWindow(true);
                      }
                   }
                }
                
                The script changes nothing on entire text of Sample References.txt selected before running the script.

                The macro commands copied into a quick recorded macro with adding additionally the commands SelectAll and PerlReOn do not change anything at all too.
                Best regards from an UC/UE/UES for Windows user from Austria

                7
                NewbieNewbie
                7

                  6:42 - May 30#8

                  Thank You So Much! Mofi