thanks all for reply
it was useful information , i tried to call the function
memo1.lines.add(getlastpageno(s));
i got this error getlastpageno not identifier
another thing i have text like this
/python-data-analytics-data-analysis-and-science-using-pandas-matplotlib-and-the-python-e158003322.html
how to get only text without '-' and without 'e158003322.html'
second thing how to replace 'e' in 'e158003322.html' with 'd'
thanks
Alaa