findprev() is an inbuilt function in julia which is used to return the previous occurrence of the specified pattern in specified string starting from specified position.
findnprev(pattern::AbstractString, string::AbstractString, start::Integer)
- pattern::AbstractString: Specified pattern
- string::AbstractString: Specified string
- start::Integer: It is the start position before which matching going to be performed.
Returns: It returns the previous occurrence of the specified pattern in a specified string starting from the specified position.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.