I know, this is rather old now, but - someone might be interested in it. (Though, it is better to ask Oracle related questions in the Oracle forum - you'd get answers much sooner).
Anyway: I created a table and put several records in it. This is the output - note the DUMP function I used; list of numbers represents ASCII codes of these characters.
Code:
SQL> select col, dump(col) dmp from test;
COL DMP
-------------------- --------------------------------------------------
Y Typ=1 Len=7: 89,13,10,89,13,10,76
Y -- --
L these are CHR(13) (carriage return)
and CHR(10) (line feed)
A Typ=1 Len=10: 65,13,10,66,13,10,67,13,10,68
B
C
D
A Typ=1 Len=4: 65,13,10,89
Y
SQL>
Now that we know that your "new line" consists of both CHR(13) and CHR(10), we'll replace them by an empty string:
Code:
SQL> select col, replace(replace(col, chr(10), ''), chr(13), '') col1 from test;
COL COL1
-------------------- --------------------
Y YYL
Y
L
A ABCD
B
C
D
A AY
Y
SQL>
Finally, find the second character, the one you're interested in:
Code:
SQL> select
2 col,
3 substr(replace(replace(col, chr(10), ''), chr(13), ''), 2, 1) second_char
4 from test;
COL S
-------------------- -
Y Y
Y
L
A B
B
C
D
A Y
Y
SQL>