If you want to match your regular expression pattern only at the end of a string, you can use $ anchor (similarly to ^ that anchors at the beginning of a string).
For example, the regexp
Code: Select all
ab$
Code: Select all
ab$
Code: Select all
app.browseForDoc({cFilenameInit:"*.myext"})