Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Searching/Extracting to end of file
#1
Hi there,

I am looking for a way to get information from a textfile from a certain point 'bookmark' copied in a string to the and of the file so everything from the text 'bookmark' till the end of this text has to be copied in a string but i cannot get it done.

Any ideas?
#2
str s.getfile(...)
int i=find(s bookmark)
str s2.get(s i+len(bookmark))
#3
Sorry if i was unclear but the text is not in a file but it is on the clipboard, it has been entered in a multiline textbox so the solution you gave will not work.

It also gave an error of an unknown identifier for bookmark

i tried something with a regular expression but i don't know how i can search for 'bookmark' and everything else after that and cut it.
#4
if you are wanting to get the info out of the clipboard use 'getclip' i cover this a bit in my new lesson on The Macro Hook at http://www.TheMacroHook.blogspot.com
An old blog on QM coding and automation.

The Macro Hook
#5
I read some stuff about regex and found it out by myself..

findrx(s1 "(?s)(bookmark)+(.*)" 0 1|16 output_needed 0)

But thanks for the time

GRZ


Forum Jump:


Users browsing this thread: 1 Guest(s)