1

This match is returning as nil, even in my eyes is okay. string:match("^This boots belongs to the player (.-)%.$")

The string is

legendary boots. It can only be wielded properly by players of level 70 or higher. It weighs 8.00 oz. This boot has less regeneration than a soft boots, but it is infinite. This boots belongs to the player Administrador.

It should returns the player name "Administrador", but always return as nil. What I'm doing wrong?

1 Answer 1

3

Lua, as it seems, doesn't provide a method to receive different flags in order to change behaviors of some anchors / tokens. Saying that, ^ means start of string not start of line. Just remove it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.