ParserCallback, position

E

edi

Hi,

I want to search the text in a pages and take the position of the
strings. I use ParserCallback and handleText method. But this method
doesn't work some white space (more than one spaces go to one ...) and
because of this the positions which are found are wrong. What can I do
to do this task?

Thanks.
 
D

Dimitri Maziuk

edi sez:
Hi,

I want to search the text in a pages and take the position of the
strings. I use ParserCallback and handleText method. But this method
doesn't work some white space (more than one spaces go to one ...) and
because of this the positions which are found are wrong. What can I do
to do this task?

Sounds like you want your lexer to not treat multiple consecutive
whitespaces as one.

Dima
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top