[Tutor] really basic - finding multiline chunk within larger chunk

bruce badouglas at gmail.com
Wed Feb 17 10:01:19 EST 2016


Ok. For some reason, it appears to be a whitespace issue, which is
what I thought.

The basic process that was used to get the subchunk to test for, was
to actually do a copy/cut/paste of the subtext from the master text,
and then to write the code to test.

Yeah, testing for "text" with whitespaces/multiline can be fragile.
And yeah, the text might have been from the 90s but that's irrelevant!

Thanks for confirming what I thought. Thanks also for the sample code as well.

I might just wind up stripping tabs/spaces and joining on space to pre
massage the content prior to handling it..

'ppreciate it guys/gals!

On Wed, Feb 17, 2016 at 12:02 AM, Danny Yoo <dyoo at hashcollision.org> wrote:
> (Ah, I see that Joel Goldstick also was able to do the search
> successfully; sorry about missing your message Joel!)

More information about the Tutor mailing list