Jump to content

sentike

Members
  • Posts

    6
  • Joined

  • Last visited

About sentike

  • Birthday 02/01/1997

Details

  • Location
    Russia
  • Occupation
    begginer programmer in os. russian boy =)
  • Interests
    samp, mta, unity, udk; programming in os

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

sentike's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Change Log: V 1.1 1. Increased reliability of the module; 2. Fixed a server crash at the wrong pattern 3. Added error output to the console
  2. CapY, for example, we need to check the player's nickname, the format FirstName_LastName. So this is a regex that will do it for us. if(regex_match("Sentike","([A-Z]{1,1})[a-z]{2,9}_([A-Z]{1,1})[a-z]{2,9}") then --Bad login end if(regex_match("Sent_Style","([A-Z]{1,1})[a-z]{2,9}_([A-Z]{1,1})[a-z]{2,9}") then --Ok, next steps... end Or do we want to allow entry only numbers of a specified length We will use the pattern P.S. I used outputdebugstring, to verify that the module !
  3. Arisu, if it is fair, I do not know. I think that should work. Try it as usually the function call make LUA
  4. Sarrum, Thank you. Was glad to help =) If you find bugs - inform me
  5. Lua does not support regex pattern, http://en.wikipedia.org/wiki/Regular_expression "([0-2]\\d|3[01])\\.(0\\d|1[012])\\.(\\d{4})" - Date Regex (dd.mm.yyyy)
  6. Hello, I want to provide opportunities for the long-awaited plug-MTA - Regular Expersion (regex). The plugin has three functions: -- Searching for a particular expression bool regex_search (string Source, string Pattern) -- Testing for the presence of arrays Expressions bool regex_match (string Source, string Pattern) -- Replace the expression an expression string regex_replace(string Source, string Pattern, string replacement) -- Information about the plugin bool regex_info () Plugin version: 1.2 Plugin authors: sentike https://dl.dropbox.com/u/69743126/%21sentike/mta/rtm_mta_regex.rar Change Log: for example, we need to check the player's nickname, the format FirstName_LastName. So this is a regex that will do it for us. if(regex_match("Sentike","([A-Z]{1,1})[a-z]{2,9}_([A-Z]{1,1})[a-z]{2,9}") then --Bad login end if(regex_match("Sent_Style","([A-Z]{1,1})[a-z]{2,9}_([A-Z]{1,1})[a-z]{2,9}") then --Ok, next steps... end Or do we want to allow entry only numbers of a specified length We will use the pattern If you find bugs - inform me
×
×
  • Create New...