in reply to Re^2: Replacing the pattern
in thread Replacing the pattern

davido++ has given you a solution which replaces every newline with a space. Isn't that exactly what you're asking for?

If not, you'll need to show several examples - enough that we can see what you want. Make sure the spaces are countable.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^4: Replacing the pattern
by agynr (Acolyte) on Jan 20, 2005 at 11:28 UTC
    Suppose the code is given as
    </TABLE> 2 <PAGE> abcdefghijklmnopq uvw
    It should be converted to
    </TABLE> abcdefghijklmnopq uvw
    I hope that the above example will explain u everything. If any pattern (like above it is found) then it will convert the pattern length and the no. of lines in the pattern found to spaces. But if suppose no pattern is found then it shouldn't convert the lines to spaces.
Re^4: Replacing the pattern
by agynr (Acolyte) on Jan 20, 2005 at 11:43 UTC
    My Data is suppose this
    </TABLE> 2 <PAGE> RISK/RETURN SUMMARY AND FUND EXPENSES PRIME MONEY MARKET FUND
    It should be converted to
    </TABLE> RISK/RETURN SUMMARY AND FUND EXPENSES PRIME MONEY MARKET FUND
    Hope that it will give a better look.

    Edit by castaway - closed hanging code tag