Hi, I’m new to the list and I hope this is the right place to ask the
question, but I recently started learning ruby and I was writing a short
little program to test if a word was made up of symbols from the
table. I figured I’d use ruby’s built-in regex support, so I ended up
writing a regex that looks something like this:
Basically it’s just got all 115 or so of the elements in there, and
testing for one or more, right? Unfortunately this doesn’t seem to work
properly as a (nonsense) word like “presenti” should be periodic
to my list of elements, [p][re][se][n][ti]. Now, I can duplicate this
behavior with the regex coach oddly enough. The problem seems to be that
parses [p][re][s] instead of [se]. I’m wondering if anyone can explain
behavior to me, as I’m new to both regexps and ruby and the only regex
experience I’ve had previous to this is in some theory classes. Thanks.
full expression is below.