To replace matched portions of a string with another string, use the replacefirst or replace all function.
Um übereinstimmende Teile eines Strings durch einen anderen String zu ersetzen, verwenden Sie die Funktion „ replacefirst oder replaceall".
The following example template shows how to remove all dashes from the user-provided string, and how to replace part of the string with another string.
Die folgende Beispielvorlage zeigt, wie Sie aus einer von einem Benutzer bereitgestellten Zeichenfolge alle Gedankenstriche entfernen und einen Teil der Zeichenfolge durch eine andere Zeichenfolge ersetzen.String
Searches a block of consecutive lines for a string of one or more characters that you specify, and replaces each occurrence of that string with another string that you specify.
Sucht in einem Block aufeinander folgender Zeilen nach einer vom Benutzer angegebenen Zeichenfolge (bestehend aus einem oder mehreren Zeichen) und ersetzt jede Instanz dieser Zeichenfolge durch eine andere, von Ihnen angegebene Zeichenfolge.
Replaces a string with another string, and returns the new results. Syntax
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.