replace() is an inbuilt function in julia which is used to replace a word or character with the specified string or character.
replace(s::AbstractString, pattern=>Word; count::Integer)
- s::AbstractString: Specified string.
- pattern=>Word: Pattern is searched from the given sentence and then that pattern is replaced with the word.
- count::Integer: It is a number which is the count of specified pattern available in the sentence.
Returns: It returns a new sentence with replaced words.
- Get a substring of specified length from a string in Julia - SubString() Method
- Replacing elements of a collection in Julia - replace() and replace!() Methods
- Get a substring of specific size from starting of a string in Julia - first() Method
- Get a substring of specific size from end of a string in Julia - last() Method
- Julia end Keyword | Marking end of blocks in Julia
- Julia function keyword | Create user-defined functions in Julia
- Julia continue Keyword | Continue iterating to next value of a loop in Julia
- Julia break Keyword | Exiting from a loop in Julia
- Julia local Keyword | Creating a local variable in Julia
- Julia global Keyword | Creating a global variable in Julia
- Convert an Integer to a String in Julia - string() Function
- Get size of string in Julia - sizeof() Method
- Reverse a string in Julia - reverse() Method
- Get the last occurrence of the specified string pattern in Julia - findlast() Method
- Get length of a string in Julia - length() Method
- Get repetition of a string in Julia - repeat() Method
- Get the first occurrence of the specified string pattern in Julia - findfirst() Method
- Check if a string contains a non-ASCII value in Julia - ascii() Method
- Check if string starts with a specified prefix in Julia - startswith() Method
- Check if string ends with a specified suffix in Julia - endswith() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.