I have some text in the following format:
column1 DATE,
column2 VARCHAR2(6),
column3 VARCHAR2(15)
(It is the format of Oracle column definitions in case you are wondering.)
I’ve been trying to figure out how to replace everything past the space in each line with VARCHAR2(255),
, but haven’t been successful yet.
I know I can search the occurrences of space via /\s
, but I can’t figure out how to get the rest of the string on the line. When I use /\s*
, it highlights all the text. I attempted to use /\s.+
, but I get a “Pattern not found” error.
How can I get all text past the space in each line and replace it globally with another string?