match()

new topic     » topic index » view thread      » older message » newer message

match("", "something") shows an error
first argument of match() must be a non-empty sequence

I think it should return 1, because "" is a substring of "something",
and is located in any position.

So I don't have to check if the first argument is "", don't call
match().

How do you think?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu