Limitations with Data Formats (which could be less limited)

I think there are inevitably limitations to what can be done with the formatters etc. However, there seem to some anomalies when dealing with expressions which could be created at least partly with the formatters. I’m not sure if the cases below are just limitations or (fairly minor) bugs.

If I want to create an expression like this, using the Data bindings/Formats panel:
var_keywords.value[$index].substr(0, 4)}}

… I add ‘[$index]’ manually, but then I should be able to use the formatters. However, as far as I can see, I have to convert the expression to a string, continue modifying the expression, and then edit the expression - to remove ‘toString()’. Including ‘$index’ means that only numeric options are available (obviousy I don’t want to apply any formatting to ‘$index’ itself):

image

Another issue is editing expressions including regular expressions. I appreciate that the regex has to be added manually, but it would be useful to use the formatters too. Eg this expression can’t be edited using the Data Formats panel at all, although the options are available in the Data Formats panel:
sc_detail.data.qry_item.author.replace(/\[.*?\]/, '').slugify().replace('-', ' ')

… this error appears if I try:

Do I understand correctly that the expressions themselves work correctly, but you are not able to edit them with the interface within Wappler when they contain some specific code like an regexp.

Yes, that’s correct. The expressions work fine. It would just be convenient to be able to edit them with the formatters (having edited them manually if necessary).