dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Feature Request: Blip.all(regular expression) #773

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Thanks for filing, I've shared your request with the team.

Original comment by pamela.fox on 3 Jun 2010 at 12:31