search for: 9_

Displaying 20 results from an estimated 119 matches for "9_".

2006 Jan 20
4
validates_format_of > Invalid regular expression with simple pattern
Hello, I try this : validates_format_of :name , :with => /^[A-z0-9_.- ]*$/ , :message => "bad characters" for accept any name with chars "A" to "z" , "0" to "9" , with "_" "." "-" and " " The pattern is really simple but I have this error : SyntaxError in Login#regi...
2008 Feb 11
1
ctags support for puppet
This is a quick and dirty .ctags file that makes basic navigation possible with vim and ctags, great if you have multiple files: --langdef=puppet --langmap=puppet:.pp --regex-puppet=/^class[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^site[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^node[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^define[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ Paul
2006 Apr 01
3
Syncpeople Plugin Scope Never Active
...controller: { name = ''meta.rails.controller''; comment = ''Uses lookahead to match classes with the Controller suffix; includes ''''source.ruby'''' to avoid infinite recursion''; begin = ''(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)''; end = ''^\1(?=end)\b''; patterns = ( { include = ''source.ruby''; }, { include = ''$self''; } ); } -- Jeremy Huffman http://www.jeremy...
2017 Jan 23
2
Linking Linux kernel with LLD
Our tokenizer recognize [A-Za-z0-9_.$/\\~=+[]*?\-:!<>]+ as a token. gold uses more complex rules to tokenize. I don't think we need that much complex rules, but there seems to be room to improve our tokenizer. In particular, I believe we can parse the Linux's linker script by changing the tokenizer rules as follows....
2017 Jan 24
5
Linking Linux kernel with LLD
>Our tokenizer recognize > > [A-Za-z0-9_.$/\\~=+[]*?\-:!<>]+ > >as a token. gold uses more complex rules to tokenize. I don't think we need that much complex rules, but there seems to be >room to improve our tokenizer. In particular, I believe we can parse the Linux's linker script by changing the tokenizer rules as...
2006 Mar 14
8
email address parse
hi all how to parse such email string to a array: #-------------------------------------------- "joe black"<joe_1@joe_black.com> joe_2@joe_black.com, joe_3@joe_black.com #-------------------------------------------- seems emails from user input include various format. and i have to split them to a array. any idea? regards. -- Posted via http://www.ruby-forum.com/.
2010 Mar 31
3
regular expression help to extract specific strings from text
...ve" "Adam" NA I can't work out how to extract the usernames starting with '@' or the #tags. I can identify them using gsub and replace them, but I don't know how to just extract those terms only, e.g. sort of the opposite of the following > gsub("@([A-Za-z0-9_]+)", "@[...]", x) [1] "Eve: Going to try something new today..." [2] "Adam: Hey @[...], how are you finding R? #rstats" [3] "Eve: @[...], It's awesome, so much better at statistics that #Excel ever was! @[...] & @[...] disagree though :(" [4] &qu...
2017 May 09
2
Dovecot/Sieve shortcuts?
Hi, Is there a clean way to match on an email address the way procmail ^TO_ did? that was a macro which expanded to (^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope |Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?) so you could write * ^TO_dovecot dovecot and grab messages to the list. In sieve, I find myseld writing ["To","cc"] and wonder if there's a better way. Adam
2006 Jul 28
1
escape/unescape attribution
...e a comment that says this about the self.escape method: # Performs URI escaping so that you can construct proper # query strings faster. Use this rather than the cgi.rb # version since it''s faster. (Stolen from Camping). def self.escape(s) s.to_s.gsub(/([^ a-zA-Z0-9_.-]+)/n) { ''%''+$1.unpack(''H2''*$1.size).join(''%'').upcase }.tr('' '', ''+'') end That "Stolen from Camping" thing perplexed me, because when I looked at that, it looked fundamentally iden...
2017 May 09
1
Dovecot/Sieve shortcuts?
...rg>: | >Hi, | > | >Is there a clean way to match on an email address the way procmail | >^TO_ did? that was a macro which expanded to | >(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope | >|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?) | > | >so you could write | >* ^TO_dovecot | >dovecot | > | >and grab messages to the list. In sieve, I find myseld writing | >["To","cc"] and wonder if there's a better way. | You cou...
2017 May 09
4
Dovecot/Sieve shortcuts?
...Adam Shostack <adam at shostack.org>: >Hi, > >Is there a clean way to match on an email address the way procmail >^TO_ did? that was a macro which expanded to >(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope >|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?) > >so you could write >* ^TO_dovecot >dovecot > >and grab messages to the list. In sieve, I find myseld writing >["To","cc"] and wonder if there's a better way. You could use the X-BeenThere or List-Id headers to mat...
2006 Jul 07
2
Problem with GetText 1.6.0 - undefined method ''N_''
...tests got broken. I got this error: ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in `method_missing'': undefined method `N_'' for User:Class (NoMethodError) etc My model user.rb has this line: validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message => N_("%{fn} invalid, only letters, numbers and underscore are allowed.") Any clue? -- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez@gmail.com http://vp.com.ve http://lacaraoscura.com http://rubycorner.com --
2017 Jan 27
2
Linking Linux kernel with LLD
...ughed at. ("You seriously couldn't even be bothered to implement a real lexer?") -- Sean Silva > > > On Tue, Jan 24, 2017 at 7:57 AM, George Rimar <grimar at accesssoftek.com> > wrote: > >> >Our tokenizer recognize >> > >> > [A-Za-z0-9_.$/\\~=+[]*?\-:!<>]+ >> > >> >as a token. gold uses more complex rules to tokenize. I don't think we >> need that much complex rules, but there seems to be >room to improve our >> tokenizer. In particular, I believe we can parse the Linux's linker scrip...
2006 Mar 31
5
Titles in URL ?
Hi! I have an article website and would like to have the title of the article in the URL. and not domain.com/show/id ie: http://domain.ck/articles/how-to-become-a-ror-master/ How to change a title with special caracters like: '', :, ?, !. to something that works in the URL. Thank you! -- Posted via http://www.ruby-forum.com/.
2013 Jul 01
2
[LLVMdev] [bikeshed] Anyone have strong feelings about always putting `template <...>` on its own line?
...cd clang/ $ git grep -E '^\s*template.*(class|struct).*{' -- lib include | wc -l 60 My general feel is that template declarations are usually one-lined in existing code, but it seems that it is about half and half: $ git grep -E '^ *template *<[^>]*> *(class|struct) [A-Za-z0-9_]+;' | wc -l 78 $ git grep -A1 -E '^ *template' | egrep -- '- *(struct|class) [A-Za-z0-9_]+;' | wc -l 72 -- Sean Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130701/6e0f8690/attac...
2019 Oct 31
5
[PATCH] Replace mkproto.pl with mkproto.awk
..., "BOOL ") + sub(/^CHAR\(/, "char ") + sub(/^INTEGER\(/, "int ") + sub(/^STRING\(/, "char *") + protos = protos "\n" $0 (local ? "(int module_id);" : "(void);") + next +} + +/^static|^extern|;/||!/^[A-Za-z][A-Za-z0-9_]* / { next } + +/\(.*\)[ \t]*$/ { + protos = protos "\n" $0 ";" + next +} + +/\(/ { + inheader = 1 + protos = protos "\n" $0 +} + +END { + if (old_protos != protos) print protos > "proto.h" + print "" > "proto.h-tstamp&q...
2006 Jul 13
1
writeForeignSAS and potential extensions
...{ +make.SAS.names <- function(varnames, validvarname = c("V7", "V6")){ + validvarname <- match.arg(validvarname) + nmax <- if(validvarname == "V7") 32 else 8 + x <- sub("^([0-9])", "_\\1", varnames) + x <- gsub("[^a-zA-Z0-9_]", "_", x) + x <- abbreviate(x, minlength = nmax) + + if (any(nchar(x) > nmax) || any(duplicated(x))) + stop("Cannot uniquely abbreviate the variable names to ", + nmax, " or fewer characters") + names(x) <- varnames + x +} + +make.SAS.fo...
2003 Mar 11
1
fudging filename characters
...at people are trying to backup systems to a SMB share which presumably is then regularly backupped to tape. This basically sounds like a reasonable thing to do :-) Would there be much opposition to an option to mangle filenames if necessary? In its most trivial form, all characters besides a-zA-z0-9_.- would be mapped to e.g. _ . Of course, restoring these would be a lot of work, but at least the rsync transfer would work. In a later incarnation there might be different mappings, e.g. to a HTTP-like %XX notation (so space becomes %20, question mark becomes %3F, % becomes %25, etc.). The argum...
2000 Aug 14
0
More secure wu-ftpd
...yes real delete yes real overwrite yes real rename yes real log transfers guest,real,anonymous inbound,outbound shutdown /etc/shutmsg passwd-check rfc822 enforce #Filtering non ascii character path-filter anonymous /etc/mesaj/pathmsg ^[-A-Za-z0-9_]*$ ^\. ^- #pt guest path-filter gest /etc/mesaj/pathmsg ^[-A-Za-z0-9_]*$ ^\. ^- #pt. users path-filter real /etc/mesaj/pathmsg ^[-A-Za-z0-9\._-]*$ #This line protect me wen a bug shown in wu-ftp2.4 2.5 2.6 # specify the upload directory information upload /home/ftp * no nobod...
2011 Aug 03
0
[PATCH] update valid_hostname regex checks
...-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$" + if re.match(regex_1, hostname): return True else: - return False + if re.match(regex_2, hostname): + return True + else: + return False def is_valid_nfs(nfs_entry): regex = "^([a-zA-Z0-9_\-]+)([\.][a-zA-Z0-9_\-]+)+([:][/][a-zA-Z0-9\~\(\)_\-]*)+([\.][a-zA-Z0-9\(\)_\-]+)*" -- 1.7.5.4