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| …???}
That worked, I actually need now to capitalize each alpha char, trying
to edit your code and looks like I still need to use . I
can’t do block [A-Z] in target sub.
dai
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.