This commit is contained in:
narawat lamaiin
2025-04-25 21:12:14 +07:00
parent 14766ae171
commit 5108ad1f6b
2 changed files with 116 additions and 23 deletions

View File

@@ -1042,9 +1042,11 @@ Extracts and returns the text that is enclosed between two specified characters
# Examples
```jldoctest
julia> text = "Hello [World]!"
julia> text = "Hello [World]! [Yay]"
julia> extracted_text = extractTextBetweenCharacter(text, '[', ']')
println(extracted_text) # Output: "World"
2-element Vector{Any}:
"World"
"Yay"
```
"""
function extractTextBetweenCharacter(text::String, startchar::Char, endchar::Char)