Run the Regular Expression Result Counts packages in Sublime.
Sublime Text and the Scribe packages must be installed.
Regular Expression Result Counts
To run the Regular Expression Result Counts
- Open the .sam or .scml file on which to run the tool.
- In Sublime, navigate to .
This tool will run all of the regular expressions from the Regular Expressions Resource.
A new file will open with the results. Any search that yielded results will appear in the file along with the number of matches found.
Regular Expression Results from File
Configuring Regular Expression Results from File
- In Sublime, navigate to .
- Enter the subfolder .
- Create a folder under User called .
- In this folder, place any custom search text files.
Creating/Editing Custom Regular Expression Results Files
- Create a .txt file. To add a search, start a line with **Find: ** (including a space after the colon), followed by the regular expression.
- Other lines can appear in this file to help instruct the user, but only lines beginning with “Find: ” will be treated as a search.
- Place the file in the folder.
Example:
Find: <fig>(.*)
Find: <xref idref="in([^<]*)">([^<]*)</xref>
Running the Tool.
This works similarly to the Regular Expression Results Count feature, but it reads the search expressions from the customized local file instead of the Regular Expressions Resource page.
- Open the .sam or .scml file on which to run the tool.
- In Sublime, navigate to .
- A dropdown list will appear with all of the .txt files saved in the folder. Select the file with the searches to be run.
A new file will open with the results. Any search that yielded results will appear in the file along with the number of matches found.