Created
April 27, 2024 03:20
-
-
Save mumixam/33716b648a66bd646ce13ffbcca2669a to your computer and use it in GitHub Desktop.
weechat python scripts that need raw strings for regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoauth.py: match_data = re.match("\A(irc.)?([^.]+)\.(#\S+)\Z", channel_name) | |
autoconf.py: 'option': re.compile('\s*(.*) = (.*) \(%s' % default_txt) | |
autojoin.py: sec = re.match('^\${sec\.data\.(.*)}$', oldchans) | |
bufsize.py: regex_color=re.compile('\$\{([^\{\}]+)\}') | |
bufsize.py:regex_optional_tags=re.compile('%\{[^\{\}]+\}') | |
chancomp.py: ischan_regex = re.compile("^{}\.[{}]".format(re.escape(server), re.escape(isupport_chantypes))) | |
clone_scanner.py: host_matchdata = re.match('([^@]+)@(\S+)', ident_hostname) | |
correction_completion.py: re_remove_chars = re.compile('[,.;:?!\)\(\\\/\"\^]') | |
glitter.py:glitter_pat = re.compile("\*\*\*([^\*]+)\*\*\*") | |
greentext.py:purpletext_re = re.compile("^\s*<.*$") | |
hl2file.py:regex_tags = re.compile('%\{[^\{\}]+\}') | |
log.py: regex_color=re.compile('\$\{color:([^\{\}]+)\}') | |
logsize.py: regex_color=re.compile('\$\{([^\{\}]+)\}') | |
memon.py:connect_memo = re.compile('.+:You have \d+ new memo') | |
shutup.py: regex_color=re.compile('\$\{color:([^\{\}]+)\}') | |
spell_correction.py: regex_color=re.compile('\$\{([^\{\}]+)\}') | |
sshnotify.py: if re.search('DISPLAY\=',a): | |
text_replace.py: input_s = re.sub('(\s+|^)%s(\s+|$)' %orig, '\\1%s\\2' %replaced, input_s) | |
typing_counter.py: regex_color=re.compile('\$\{([^\{\}]+)\}') | |
urlserver.py: auth = re.search('^Authorization: Basic (\S+)$', data, | |
weejoin.py: unignore_command = re.match("^unignore\s+(.+)", args) | |
wee_most.py: arg_search = re.search("([^\|]*)\|([^\|]*)\|(.*)", data) | |
whowas_timeago.py:PARSE_TIMESTAMP_REGEXP = re.compile("^\w{3} (\w{3}) (\d{1,2}) (\d{2}):(\d{2}):(\d{2}) (\d{4})$") | |
xfer_setip.py: ipv4 = re.compile('(([2][5][0-5]\.)|([2][0-4][0-9]\.)|([0-1]?[0-9]?[0-9]\.)){3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment