Hello, regexec matching pattern against buffer throughout complete length and skips for those that doesn't match until match is found. Is it possible to get match for first character and if match fails, it returns fail rather than going forward to next characters. In summary, only start of buffer should b considered for match. Regards, Anand