Shop OBEX P1 Docs P2 Docs Learn Events
regular expressions on the propeller — Parallax Forums

regular expressions on the propeller

hkimballhkimball Posts: 15
edited 2007-04-10 21:48 in Propeller 1
I am curious to know if anyone else is developing code that involves a lot of text processing and if anyone else may have interest in a spin object that could support regular expressions.· I know this may sound a little odd for a microcontroller app but it is necessary on the projects I am developing.

I am interested in all comments.

Thanks
Harold Kimball

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-04-10 21:48
    Harold,

    A regular expression object would be a very valuable asset — especially for processing input data streams. It needn't be as complicated as the ones in scripting languages like Perl and Python to be useful, either. If you write one, just keep it simple and fast.

    Another option would be to write a PC app that translates regular expressions into native Spin code that could be pasted into a Propeller app. This might actually yield faster code than with the Propeller interpreting the RE during runtime.

    -Phil
Sign In or Register to comment.