We have detected that cookies are not enabled on your browser. Please enable cookies to ensure the proper experience.
Results 1 to 9 of 9

Threaded View

  1. #2

    Re: Lua pattern "not"?

    You might be able to use the set's complement operator ^ to exclude patterns with the word "the" in them.

    For example:
    Code:
    defeated [^t][^h][^e]
    this basically translates to:
    • the word defeated
    • followed by anything except a lowercase t (you might be able to stop your pattern here)
    • followed by anything except a lowercase h
    • followed by anything except a lowercase e

    Edit: You actually should just stop your pattern after defeated [^t] since otherwise it might reject players who have an h and e as the second and third characters of their names. Since no player will ever have a name starting with a lowercase t, this pattern should suffice.
    Last edited by Fredelas; Apr 21 2012 at 03:15 AM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

This form's session has expired. You need to reload the page.

Reload