View Single Post
Old 07-02-2020, 07:34 PM   #30
Ted Friesen
Nameless Being
 
Regex-function code

In regex-function mode "create/edit" brings up a dialogue box with two sections: 1. function name and 2. Code.

Function name has a drop down list of about a dozen functions. I thought that choosing a built-in function would populate the code panel with the appropriate Python code so I could learn from it, but it does not change from the default:

def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
return ''

There are a few examples in the User Manual, but not all of the built-in functions, which would be handy. Where might I find the code for those functions and others? Is there, perhaps a thread the saved searches thread?

If this is some secret that a novice shouldn't know, please let me know. I don't want to accidentally cross the beams and annihilate the universe.
  Reply With Quote