Menu

#26 string.match and string.replace

open-accepted
3
2005-07-04
2005-06-03
Sid
No

When you have time to add the regular expression
support, please include the match and replace wrapper
functions in the string class as is found in JavaScript.
These provide a much simpler interface than working
directly with the regular expression object. Please note
that part of the power of the match function is that one
can include things like $1 in the replace string, and the
parser will do the correct thing.

Thanks for all your hard work. This is a very impressive
contribution.

Discussion

  • Martin Heidegger

    Logged In: YES
    user_id=901744

    We currently might get the option for providing a RegExp
    Framework. This should be implemented by the release that
    contains the RegExp.

     
  • Martin Heidegger

    • labels: --> Additional Implementation
    • priority: 5 --> 3
    • assigned_to: nobody --> mastakaneda
    • status: open --> open-accepted
     
  • Martin Heidegger

    Logged In: YES
    user_id=901744

    Regexp has been added to the CVS (you can view them,
    here:http://cvs.sourceforge.net/viewcvs.py/as2lib/main/src/org/as2lib/regexp/)

    I will not add the methods to the StringUtil to not have
    troubles with the resulting .swf FileSize by just using the
    StringUtil, but there may be a RegExpUtil that allows your
    methods.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.