Rich Text Manipulation

Hi all,

I’m fairly new to AppleScript ” I’ve barely even written basic scripts ” but I find myself suddenly in need of something beyond my abilities. What I need to be able to do is take an .rtf document, sift through it, look for an arbitrary string that matches the pattern “(bold text)(plain text)”, and then greedily split the file each time it finds that pattern, with the (bold text) becoming the name of the file and the (plain text) becoming its contents.

Any suggestions for where I might start? I know Perl would probably be better for this, but sadly, while I’m familiar with regular expressions, I’m not too familiar with Perl (I come from a Java background).

Yours truly,
A.H.