Re: [GENERAL] split string by special characters

2009-07-28 Thread Jan-Erik
Current design of function ---text_to_array( sen text, col collection )--- DECLARE delimiter_pos int[] := '{}'; return_val text[] := '{}'; delimiters_chr RECORD; remaining_text text; delimiter_curr text; i int := 0; j int := 0; prev_pos int := 1; curr_pos int := 0; delimiter_len

Re: [GENERAL] split string by special characters

2009-07-25 Thread Andreas Wenk
Jan-Erik schrieb: On 24 Juli, 23:22, a.w...@netzmeister-st-pauli.de (Andreas Wenk) wrote: Hi, I was thinking about that and in my opinion the approach to let the database do that is the wrong direction. Sure you can do a lot with regexp_split_to_table or regexp_split_to_array but they are kind

Re: [GENERAL] split string by special characters

2009-07-24 Thread Jan-Erik
On 24 Juli, 23:22, a.w...@netzmeister-st-pauli.de (Andreas Wenk) wrote: > > Hi, > > I was thinking about that and in my opinion the approach to let the > database do that is the wrong direction. Sure you can do a lot with > regexp_split_to_table or regexp_split_to_array but they are kind of Yes, I

Re: [GENERAL] split string by special characters

2009-07-24 Thread Andreas Wenk
Jan-Erik wrote: I wonder if you could please help me out to extract a character string to an array or better yet, a table. I'd like to split strings of text up into words and delimiters (but not delete the delimiters). The delimiters are defined as comma, space, dot, singe/double quotation mark,

[GENERAL] split string by special characters

2009-07-23 Thread Jan-Erik
I wonder if you could please help me out to extract a character string to an array or better yet, a table. I'd like to split strings of text up into words and delimiters (but not delete the delimiters). The delimiters are defined as comma, space, dot, singe/double quotation mark, question mark et