Code: Select all
line := 3 ; Line number to extract
; String from textfile:
str := "Line_1`r`nLine_2`r`nLine_3`r`nLine_4`r`nLine_5`r`nLine_6`r`nLine_7`r`nLine_8`r`nLine_9"
; or
str := "Line_1`nLine_2`nLine_3`nLine_4`nLine_5`nLine_6`nLine_7`nLine_8`nLine_9"
Is it possible to extract a specified line by a given string using a regular expression?
A big thank you for your efforts in advance.