You mean like using the regular expression thingies as described in perlre ?
/J\
In reply to Re: substring extraction by gellyfish in thread substring extraction by tpane