Posts: 128
Threads: 48
Joined: Jan 2007
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?
Posts: 12,142
Threads: 143
Joined: Dec 2002
str s.getfile(...)
int i=find(s bookmark)
str s2.get(s i+len(bookmark))
Posts: 128
Threads: 48
Joined: Jan 2007
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.
Posts: 1,769
Threads: 410
Joined: Feb 2003
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
Posts: 128
Threads: 48
Joined: Jan 2007
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