Thanks...!!
I got it done like this:
Qstring temp;
while(!chk_ln.isNull())
{
for (int i = 0; i < list2.size(); ++i)
{
temp= list2[i]; //added
if(temp.
contains(QRegExp("[0-9]"))) //added { continue; } //added
out<<list2[i]<<" ";
}
out<<"\n";
chk_ln = cc_in.readLine();
}
Qstring temp;
while(!chk_ln.isNull())
{
QStringList list2 = chk_ln.split(QRegExp("\\W+"), QString::SkipEmptyParts);
for (int i = 0; i < list2.size(); ++i)
{
temp= list2[i]; //added
if(temp.contains(QRegExp("[0-9]"))) //added
{ continue; } //added
out<<list2[i]<<" ";
}
out<<"\n";
chk_ln = cc_in.readLine();
}
To copy to clipboard, switch view to plain text mode
But, thanks for answering!
Bookmarks