Ross Bamford <rossrt / roscopeco.co.uk> wrote:

> (Notice the [] brackets that denote a character set)

fine, thanks, difficult to catch out typos particularly in regexps...

> 
> 
> Try this:
> 
[...]

> flag=(rgx === truc) # /// switch these around
> p "flag = #{flag}"
> # => "flag = true"

i did both :
flag=(truc === rgx)
p "flag = #{flag} for flag=(truc === rgx)"
# => "flag = false for flag=(truc === rgx)""
flag=(rgx === truc)
p "flag = #{flag} for flag=(rgx === truc)"
# => "flag = true for flag=(rgx === truc)"

that's a really strange behaviour, to me, of ruby, a "symetrical"
operator symbol being not commutative ????

better to know ;-)

> 
> See also the 'what on earth...' thread that's been on the list recently
> (yesterday/today I think).

ok, thanks very much !
-- 
une bue