Whether you want to create a new RegEx or edit an existing one, the window that will allow you to do so will be one of those that you see in the image on this page. In fact, to be precise, it will be the same but with specific fields visible or hidden.
RegEx Header LibreOffice - Ubuntu
| |
RegEx Replace
OpenOffice - Windows
| |
RegEx Line Modifier LibreOffice - Ubuntu
|
RegEx Replace LibreOffice - Ubuntu
| |
RegEx Hyphenation LibreOffice - Ubuntu
| |
RegEx Warning
OpenOffice - Windows
|
In the next few pages of this manual you will find at least one instance per type so do not worry. For now, let's focus on only a brief description of all the fields that you can find in the window.
- Key
- This field is not editable and is the ID of the RegEx. In case of modification of existing RegEx will take the value of the RegEx you are editing. If you have a new value generated by the extension.
- Visible
- Field that can take only two values: 'Visible' or 'Not Visible'. In the first case the RegEx will be 'turned on' and sought after in the document, the second will be 'turned off' and not used.
- Text
- This field is the text that will be displayed in the section describing the RegEx.
- Find
- The expression to search. It can be simple text or be a regular expression.
- RegEx
- Allowed values 'Yes' or 'No'. 'Yes' and the text 'Find' will be searched as RegEx. 'No', and the text will be searched as simple text.
- Case Sens.
- Allowed values 'Yes' or 'No'. 'Yes', and the search will differentiate between upper and lower case (shearcing 'why' will not find 'Why'). 'No', and the search will not make the distinction between uppercase and lowercase letters.
- Dual Choise
- Allowed values 'Single' or 'Dual'. With 'Single' proposal is only an automatic solution. With 'Dual' the automatic solution can be two.
- Label_1
- Text displayed in the lower section of the window of the extension as information on the action automatically.
- Mode_1
- This field can take only two types of value (Line Modifier, Replace). If 'Line Modifier' RegEx allows you to combine the different paragraphs and even replace parts of the text. If 'Replace' will only function as the RegEx to replace pieces of text without affecting the paragraph.
- Replace_1
- This field will be used to know how to replace the found text with the field 'Find'. In case of RegEx please note that in the dialect of OpenOffice subexpressions (backreferences) are like $ 1, $ 2, etc etc.
- Direction_1
- This field is specific to the RegEx 'Line Modifier' that will link the paragraphs. The field accepts only 'Right' or 'Left'. This value will instruct whether to move the cursor left or right after the search of the RegEx. For a more specific explanation, please refer to the examples in the following pages.
- Selection_1
- This field is specific to the RegEx 'Line Modifier' that will link the paragraphs. This value describes how many characters you will have to move the cursor by selecting the text below. For a more specific explanation, please refer to the examples in the following pages.
- Label_2
- Text displayed in the lower section of the window of the extension as information on the action automatically.
- Mode_2
- This field can take only two types of value (Line Modifier, Replace). If 'Line Modifier' RegEx allows you to combine the different paragraphs and even replace parts of the text. If 'Replace' will only function as the RegEx to replace pieces of text without affecting the paragraph.
- Replace_2
- This field will be used to know how to replace the found text with the field 'Find'. In case of RegEx please note that in the dialect of OpenOffice subexpressions (backreferences) are like $ 1, $ 2, etc etc.
- Direction_2
- This field is specific to the RegEx 'Line Modifier' that will link the paragraphs. The field accepts only 'Right' or 'Left'. This value will instruct whether to move the cursor left or right after the search of the RegEx. For a more specific explanation, please refer to the examples in the following pages.
- Selection_2
- This field is specific to the RegEx 'Line Modifier' that will link the paragraphs. This value describes how many characters you will have to move the cursor by selecting the text below. For a more specific explanation, please refer to the examples in the following pages.
The next pages made specific examples to try to explain the various features implemented.