Would function similarly to the simple text search already available with
Blip.all(search string), but would find regular expression matches instead.
Additional functionality/arguments could include searching plain text only
and/or determining which ElementTypes should be allowed to be in the match.
This would allow for simpler and safer (it would make it harder to
unknowingly delete Elements, if the above-mentioned plain text only
flag/argument was set) search and replace of matches within delimiters like
a lot of those LaTeX-to-image robots do (text within $$...$$ gets replaced
by an image).
Currently the only way to work around the above-mentioned safety issue is
to iterate through blip.serialize().getElements() and check if any of the
indexes are in the range of the delimiters.
Original issue reported on code.google.com by mlunar on 31 May 2010 at 3:51
Original issue reported on code.google.com by
mlunar
on 31 May 2010 at 3:51