Page tree

Versioning

Includes functions of the application up to version

7.2.4
Current translate5 version

7.3.2

Version Published Changed By Comment
CURRENT (v. 4) Apr 11, 2024 15:38 updated to version 7.2.4
v. 3 Feb 16, 2024 16:24
v. 2 Feb 12, 2024 16:15

Go to Page History

Opening the “Search and replace” window

The “Search and replace” window helps you to find and replace text easily. You can access the window via the following three options:

  • Via thebutton in the editor.
  • Via the keyboard shortcut CTRL + F (“Search” tab is active)
  • Via the keyboard shortcut CTRL + H (“Replace” tab is active)

Performing a search and/or replacement

Search for:

Enter the text you want to search for in this field. You can enter complete or partial words.

Replace:In this field, enter the text with which the strings found by the search should be replaced.
Search in:Use this drop-down to control whether the string entered in the “Search for” field should be looked up in the source text or in the target text.
Match caseIf this field is inactive, the search string is interpreted in all possible variations of upper/lower case combinations. Activate this option if the case of the search string must be matched.
Search towards the topCheck this box if you want to reverse the search direction and search from bottom to top instead of top to bottom (default).
Use for search
  • Normal (default): Searches for the string entered in the “Search for” field as is.
  • Wildcards (* and ?): Allows the usage of wildcards in the search string
    • *: finds any number of characters
      Example: “trans* tool” finds “translate tool”, “translation tool”, “translator tool”, etc.
    • ?: finds one single arbitrary character
      Example: “translate?” finds “translates”, “translated”, “translate5” etc.
  • Regular expression: Allows searching with the help of regular expressions. Please refer to the List of permitted regular expressions.
Save segment on closeIf this field is active, the segment is automatically saved after the search or replacement before it is closed.
Search in locked segments

If this field is inactive, only unlocked segments are searched. If the search is to be extended to the locked segments, you need to check this field.

It is only possible to search, but not to replace text in locked segments.

Executes the search. The segments with content matching the search are automatically opened. The number of hits is also displayed.

Closes the “Search and replace” window

Replaces the current hit.

Replaces all hits in the current task.

Replacing cannot be undone! Therefore, make sure that you only click on “Replace all” if you are absolutely sure that the text should be replaced in all cases in the current task.


List of permitted regular expressions

translate5 supports the following list of MySQL regular expressions:

Meta signBehaviour
^

Finds the start position of the searched string. Can be used, for example, if you want to find something at the beginning of a segment:

^(Die) consequently finds:

$

Finds the end position of the searched string. Can be used, for example, if you want to find something at the end of a segment:

(nnte)$ consequently finds:

[...]

Finds any character inside the square brackets, e.g.:

[bar] consequently finds “Bar”, but also “Barbara” or any occurrence/combination of one or more of the characters “b”, “a” or “r”:

[^...]

Finds all characters except those noted in the square brackets.

[^bar] consequently finds the inversion of [bar]:

(...)

Finds all characters that occur in the corresponding order.

(bar) consequently finds all occurrences of “bar”:

*

Checks whether the preceding character does not occur, occurs once or occurs several times.

(bar)* consequently finds all instances where the string “bar” occurs once or several times in a row:

+

Checks whether the preceding character occurs once or more than once.

“  +” (space, space, +) consequently finds all instances of double spaces or multiple spaces in a row:

{n}

Finds n occurrences of the character(s) preceding the curly brackets.

(bar){2} consequently finds all “barbar”:

{m,n}

Finds m to n occurrences of the character(s) preceding the curly brackets.

(bar){3,4} consequently finds all “barbarbar” or “barbarbarbar”:

a|b

“Either ... or”; finds “a” and/or “b”.

(Rhabarber)|(Barbara) consequently finds all “Rhabarber” and all “Barbara”:

For more information on using MySQL regular expressions, please refer to this website.

List of regular expressions that are not allowed in translate5

The following list contains the regular expressions that are not supported by translate5 because they are blacklisted. The blacklisting is due to the higher development effort that would be required to support these regular expressions. If you are interested in using any of the blacklisted regular expressions, please contact the MittagQI development team.

Regular expressionDescription
\nSoft line break (new line). Character escape.
\rHard line break (carriage return). Character escape.
\tTab character. Character escape.
\fForm feed. Character escape.
\vVertical tab stop character. Character escape.
\0Finds NULL characters. NULL escape.
\1 or \2 etc.Octal escape (any character with a character code lower than 256 e.g.: \251).
\^ or \] or \- or \\\ (backslash) followed by any of the following characters: ^-]\.
\bJavaScript: [\b\t] finds a backspace or tab character.
\BJavaScript: \B. finds b, c, e, and f in abc def.
\dFinds a digit. Shorthand Character Classes.
\DFinds the opposite of \d, i.e. a character that is not a digit. Shorthand Character Classes.
\sFinds a space/whitespace. Shorthand Character Classes.
\SFinds the opposite of \s, i.e. a character that is not whitespace. Shorthand Character Classes.
\wFinds a word character, i.e. a letter, a digit or an underscore. Shorthand Character Classes.
\WFinds the opposite of \w, i.e. a character that is neither a letter nor a number nor an underscore. Shorthand Character Classes.
\hShorthand Character Classes.
??A regular expression like abc?? is not supported.
*?Is not supported.
+?Is not supported.
Further regular expressions

There are further regular expressions similar to those listed above that are also not supported. translate5 will inform you if you want to use regular expressions in the search functionality that are not allowed:


For further questions on this, please contact us.