Re: Regular Expression question
- From: Al Cholic <desertfox@xxxxxx>
- Date: Sat, 30 Jun 2007 11:50:42 +0900
"(13)"[0] = "("
"(13)"[1] = "1"
"(13)"[2] = "3"
"(13)"[3] = ")"
"(13)"[-1] = ")"
"(13)"[-2] = "3"
"(13)"[-3] = "1"
"(13)"[-4] = "("
"-N" counts from the end, starting with -1.
Thanks. An the .. in [1..-2] means "keep everything in between" ?
--
Posted via http://www.ruby-forum.com/.
.
- Follow-Ups:
- Re: Regular Expression question
- From: Peter Seebach
- Re: Regular Expression question
- References:
- Regular Expression question
- From: Al Cholic
- Re: Regular Expression question
- From: Peter Seebach
- Regular Expression question
- Prev by Date: Re: Regular Expression question
- Next by Date: Re: Regular Expression question
- Previous by thread: Re: Regular Expression question
- Next by thread: Re: Regular Expression question
- Index(es):