Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated to version 7.4.1

Table of Contents

Version und Versionierung

Versioning

Includes functions of the application up to version

67.24.21
Current translate5 version

Excerpt Include
Version and versioning
Version and versioning
nopaneltrue

Change History
limit3

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 theImage RemovedImage Addedbutton 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 regex_list 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.

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


Image RemovedImage Added

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

Image RemovedImage Added

Closes the “Search and replace” window

Image RemovedImage Added

Replaces the current hit.

Image RemovedImage Added

Replaces all hits in the current task.

Image Modified
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.



Image Added

Image AddedImage Removed Image Removed


Anchor
regex_list
regex_list
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:

^(TheDie) consequently finds:
Image Modified

$

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:

Image Modified

[...]

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”:

Image Modified

[^...]

Finds all characters except those noted in the square brackets.

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

Image Modified

(...)

Finds all characters that occur in the corresponding order.

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

Image Modified

*

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:

Image RemovedImage Added

+

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:

Image Modified

{n}

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

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

Image Modified

{m,n}

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

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

Image Modified

a|b

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

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

Image Modified


Image Modified

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


List of regular expressions that are not allowed

regular expressions

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 any character with a character code lower than   256 exe.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 that are comparable similar to those listed above and that are also not supported. translate5 will advise inform you if you want to use regular expressions in the search functionality that are not allowed:

Image RemovedImage Added


Image Modified

For further questions on this, please contact us.