match each gestalt perceptual grouping rule with its corresponding example.
This MATLAB function returns the starting index of each substring of str that matches the character patterns specified by the regular expression. Regex symbol to match at beginning of a line: ^ Add the string you're searching for (CTR) to the regex like this: ^CTR Example: regex That should be enough! However, if you need to get the text from the whole line in your language of choice, add a "match anything" pattern .*: ^CTR.* Example: more regex If you want to get crazy, use the end of line matcher $ Add that to the growing regex ...
The Eye of the Beholder: GESTALT / Laws of Grouping