Delete in text file

I want to delete some text in text file
Example : I want to delete text in highlight yellow. image
from : image
to :image

Guide me, please.

1 Like

Good evening @fairymemay,

You will need to extract the text into a string variable, use string manipulation (likely Regular Expressions) to delete the highlighted text, and then replace the text file with the new value in your variable (either replacing the contents or just deleting + writing a new file).

This may help when building your Regular Expression(s):

@fairymemay

If it is a fixed position then check as below

Main-split.zip (7.3 KB)

Mark as solution if this helps

Thank you

Can I use replace ?

@fairymemay

Replace with any value(Space) will create a space between the lines, If that ok, then you can use, or this will not create any issue

Mark as solution if this helps

Thanks