If you something more than a simple match, say CTAG*ATTA, regex will be
easier and probably faster. As I understand, regex builds a state
machine for your pattern and then executes it.
Do note that you can separate the building of the machine from the
execution by using rxcomp:
pat =. rxcomp 'pattern'
pat rxmatch string
Henry Rich
On 8/16/2015 6:37 AM, Raul Miller wrote:
Yes?
E. is faster than rxmatches precisely because it is less powerful.
And note that you could also use ;: (but the trace operation is 5x
larger than you need and most people don't like making state
machines).
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm