replace regexp by indexOf
[example] add default perspective