[pcre-dev] Match for the first 100 charaters of a string

2012-10-09 Thread Sandhya Sriraj
Hi, I want to display first 1000 characters of a string (literals are replaced by special symbol). I am using pcre library to replace the literal. After replacing every literal I am checking for the length of the string and if it is 1000 then stop matching and display the string. My problem is,

Re: [pcre-dev] Match for the first 100 charaters of a string

2012-10-09 Thread Zoltán Herczeg
Hi, I am not sure I totally understand your mail. You have a string, which length is 1G, and you want to display the first 1000 characters, and replace literals (characters?) with another symbol, is that correct? Why do you need pcre for this purpose? A simple loop which checks every character