How do I search for a string in a text file that has carriage returns within the string
Ältere Kommentare anzeigen
I have a text file I am trying to locate strings. Lets say that the txt file looked like this:
'hello
world'
When I search for the string 'hello world' the above txt file would yield 0 results. How can I go about getting a result for this instead of it being overlooked?
Thank you for the help. Will
3 Kommentare
B.k Sumedha
am 5 Dez. 2015
You can use
strtrim
function to remove the spaces between the text and then find the text.
Will Kinsman
am 5 Dez. 2015
B.k Sumedha
am 5 Dez. 2015
Happy Coding
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!