It looks like it doesn't find "SUMMARY", so it keeps resetting $offset to the same location--character 10: -1 + length("DESCRIPTION"). I'd suggest terminating the loop if it can't find SUMMARY or DESCRIPTION.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Difficulty with Logic parsing ICAL feed
by roboticus
in thread Difficulty with Logic parsing ICAL feed
by ChocolateCake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |