Class jReplace

  • All Implemented Interfaces:
    JFunctor, JMetaMetaFunctor, JSONFunctor, Serializable

    public class jReplace
    extends JFunctorImpl
    This replaces all instance of one string with another. Syntax is
         $replace[target,new,old]
     
    Every instance of old in the target is replaced with new. E.g.
         $replace["mairzy dotes and dozey dotes","stoats","dotes"]
     
    yields
         mairzy stoats and dozey stoats
     

    Created by Jeff Gaynor
    on 6/13/18 at 3:59 PM

    See Also:
    Serialized Form
    • Constructor Detail

      • jReplace

        public jReplace()
    • Method Detail

      • execute

        public Object execute()
      • getValue

        protected String getValue​(int index)