[Da...] Posted January 11, 2023 Share Posted January 11, 2023 This code snipped here shows the visible project templates. import gom visible_templates = gom.interactive.sys.get_visible_project_templates ( config_levels = ['shared'], regex_filters = []) It also includedes "regex_filters". Usually regex means regular expressions, so i assume it does mean the same here. I am used to use regular expressions the following way: text = "abcdefg, hans, peter , 90903 " searchpattern = re.compile(r"\d{4}[3]") matches = searchpattern.finditer(text) for match in matches: print("project number", match[0]) How to use the regexfilters in gom? are there any differences to normal regex? can i also just enter a string there? And how to show my regex-matches? Many thanks in advance, Daniel Link to comment Share on other sites More sharing options...
[Da...] Posted January 17, 2023 Author Share Posted January 17, 2023 Thread can be closed , i had an error in my regular expression and found one that works. Thx Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in