From: Mario Trento Date: 2012-02-09T14:07:19+09:00 Subject: How to catch first occurence of [a-z] Hi, Yes, I'm in learning mode and trying to see how I can change very first occurrence of alpha char in string (or list), in my example first char in string could be \s or \t, so I need to check for this. It's multi line string, so I broke up it in list elements = line, and now thinking how to process it. What string function I can use? list = multi_linestring.split(/\n/) ##then iterate thru each line { |ll| ......????} Thanks all -- Posted via http://www.ruby-forum.com/.