I am using the RegExpr_FindPatternInText function. I want to use the anchor operators ^ and $ however I can not get them to work. According to the on-line help these two options should enable me to lock the search to the begining or end of a line (I assume a line is seperated by a newline char although the documentation does not make this clear). However is I search for "^int" in the string "Hello int\nint" the function returns the location of 6 instead of 11 as expected. I tried the $ and this only seams to work for the text I look for is at the end of the string and not the end of the line. Any ideas?"