search for: matchdata

Displaying 7 results from an estimated 7 matches for "matchdata".

Did you mean: patchdata
2007 Oct 12
5
deciphering objects.log
...,String,39543,41693,2150,24.727076,55.526376,2308.000000 18,Array,3014,4232,1218,4.445888,23.633335,612.000000 18,Proc,1699,1750,51,,, 18,Regexp,1300,1310,10,,, 18,Hash,691,730,39,8.008219,36.218131,519.000000 18,Time,134,168,34,,, 18,YAML::Syck::Scalar,60,108,48,,, 18,Mongrel::Stats,44,57,13,,, 18,MatchData,14,24,10,1.416667,1.138904,5.000000 18,StringIO,9,12,3,166.833333,178.322401,408.000000 19,Float,256821,107916,-148905,,, 19,String,41693,39700,-1993,23.864257,52.626340,2308.000000 19,Array,4232,3086,-1146,5.254051,27.529250,612.000000 19,Proc,1750,1697,-53,,, 19,Regexp,1310,1298,-12,,, 19,Hash,73...
2011 May 12
1
RegExp does not match
Hi, When I try this on IRB it works fine as follows: >>/\A[\w+\-.!#$\%&''*\/\=?^`{|}~]+@[a-z\d\-.]+\.[a-z]+\z/.match("jd!#$\%&''*+-/=?^_`{|}~oe-PV5Ro7/Mrj4@public.gmane.org") => #<MatchData "jd!%&''*+-/=?^_`{|}~oe-PV5Ro7/Mrj4@public.gmane.org"> When I try it through my Ruby on Rails program I get a nil. Any idea what is happening? I am of course trying to validate an email syntax. The regex is /\A[\w+\-.!#$\%&''*\/\=?^`{|}~]+@[a-z\d\-.]+\.[a-z]+\z...
2004 Feb 04
1
RE: error (fwd)
...Morris at 3 and can stop by > > afterwards). > > > > > > > > I think it is very odd that the marchdatameta file ran > > without error some > > > > of the years and others it produced an error. Aslo note > > that running > > > > the matchdatameta file continued to produce same errors > > as before for all > > > > years. > > > > > > > > > > > > The directories for the match and march are: > > > > > > > > /net/home/morrism/Data/CPS/Comp/R/Code/MarchData ---For m...
2006 May 05
2
can you do global match regular expressions?
I cant figure out how to do global regular expressions in ruby. Im not even sure if its possible. In the "Programming Ruby" book there is no mention of it. Can you do this? text = "aaa1 bbb2 ccccc3 dddddd4 eee5" re = /\w+\d{1}/ matches = re.match text m[0] = "aaa1" m[1] = nil m[2] = nil and so on.... Is there any way to get an array of all the matches??
2007 Feb 26
1
some Mechanize objects never garbage collected?
...Tag 12 | delta 12 Hpricot::Elem 12 | delta 12 Hpricot::ETag 8 | delta 8 WWW::Mechanize::List 5 | delta 5 WWW::Mechanize::Link 2 | delta 2 MatchData 2 | delta 1 Thread 2 | delta 1 WWW::Mechanize::Page 2 | delta 2 Net::HTTPOK 1 | delta 1 URI::HTTP 1 | delta 1...
2008 Jun 18
3
Best Way of Extracting Key Value from File
...ntroller.rb:66:in `parseMessage''; So this is definitely a problem and I can''t use YAML. I tried regexps but I am new to them and I can only extract the entire line like so : result = /^From:.*$/.match(@emailcontent) # where @email content is the text of the email Regexp result matchdata object gets the entire From : "..." <> line including the from. I would like the value of "From:" (NOT including From: meaning I would like the email address that is after the colon). What do I use here ? In java we could do string.indexof and substring etc. Is there some...
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...s::MemoryFence() + 1.63% caching_compile libpthread.so.0 [.] __pthread_mutex_unlock_usercnt -------------- next part -------------- Samples: 113K of event 'cycles', Event count (approx.): 70370381305 + 10.38% caching_compile caching_compiler_test [.] common::RecordParser::MatchData(common::RecordParser::Record*, unsigned long) + 5.45% caching_compile caching_compiler_test [.] common::RecordParser::Stream::FileStreamAdapter::good() + 3.31% caching_compile caching_compiler_test [.] common::RecordParser::Stream::FileStreamAdapter::get() + 1.17% caching_compile cach...