I have this code to search a text file and get some information which are between two plus signs and it need some changes to get the exact information that I need
VB Code:
If UCase(Left(tmp(x + 1), 12)) = " (GLOSS)" Then gloss = Split(tmp(x + 1), "+") sLine = sLine & " (" & Trim(gloss(1)) & ");" ' here we add () for the traslation Else sLine = sLine & Left(Words(1), InStr(Words(1), ")") - 1) & ";" End If
If this was a part of the text file
(GLOSS): with/by + the + cooperation +
.
.
(GLOSS): + with +
.
.
(GLOSS): the + collective + [fem.sg.]
.
.
(GLOSS): you [masc.sg.] + be taken/be adopted +
What I need is to get is the info between the last two + signs
It means I need the word red color
Cooperation
with
collective
be taken/be adopted
and this code gives me the first words between + signs which is wrong n the first line
the
with
collective
be taken/be adopted




Reply With Quote