search, replace, split statement extensions to JavaScript
 

A = "Hello World\nWe have Red Delicious Apples";

B = split A by line feed;

C = search B for word "Apples" preceded by proper name;

D = replace every C with "Freestone Peaches";

alert(D);

Hello World
We have Freestone Peaches



searchObject        = search V locator

searchObject        = split V [by line feed | "text"]

searchObject        = replace searchObject with "text"  [prompt]


 

V
id   [as CSV | Text | JavaScript | HTML]

keywords CSV                   rows,  column id
keywords JavaScript       function, statement, token, name, arguments
keywords HTML                tag, styles, innerText, innerHTML

locator
[backwards | forwardslocator-value [followed by locator] [preceded by locator]

 

locator-value
containing E
starting with
E
ending with
E
 

E

word | text | sentence | number | date | proper name | url | file | email

    in [array]
    like "*any*"
    "text"

E => not E
E => E or E
E => E and E
E =>
( E )


 

searchObjects are

  • on-demand processing
  • Arrays Objects
  • pointers to text | object |  array | matrix | table
  • immediate assignment