| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> no man youre not ignored :P <1> Anathema? <0> yeah Anathema :) <2> PapaBear: LOL <2> PapaBear: hiding out from #support? :) <2> PapaBear: by the way, i HAVE bacon. :) <3> can I eat your bacon DWism ? <3> :D <0> lol... you all guys are crazy :) <1> You either mean a) a curse or b) a "British doom metal band" (that sounds *terrible*) <0> i like eating raw bacon :) <2> Hajuu: that sounds ... nasty. <0> its really great <3> DWism: I can be your nasty girl.. lol <0> i mean b) :P
<2> You'd have to be female firsdt, i'd reccon. <1> Thankfully Wikipedia does not default to the band page. <0> why man! they are great <3> you'd raccoon? <1> "Doom metal" does not sound great. I'd rather listen to Mathcore. <1> And Mathcore is terrible. <0> u dont like Angelica, Sleepless, Dying wish? <0> these 3 are not so heavy and its great <1> I've heard of none of these. <3> wtf is mathcore? <1> Songs about math. <4> about math eh? <0> lol <4> Like the Klein 4? (haha.) <0> yeah right man <4> Like Meshuggah? <5> with mergesort, from left to right is the values greatest to smallest? <6> is anybody only? I'm rushing ot find a logic error on a function, is somebody could help me point it out? at my point of view it should work but at the php point of view it doesn't :P (going to put the code in pastebin in few second <6> http://pastebin.com/755102 <7> specificly <4> why !$i==1 ? <4> Is it always 6 chars? <6> yes I change the string with a function before to ensure it comply with 6 character <4> er, duh. <4> I'd just do it manually instead of iteratively. Single if() <6> yes i will take your !$i==1 shorter form i didn't think about this way :) <6> ok <6> give me an example about how you would do it, maybe my logic is not as good <6> i need to verify that impair letter are letter and pair are number in a string position <4> http://pastebin.com/755110 <4> Something like that. <4> p.s. I've been learning php for 6 days. Others might wish to comment. <6> your form is better than mine, you might code in other language since a while or you're a good mathematician ;) <4> some of both <4> knowing php though <4> there's probably a function to make sure a 6-character string alternates numbers and letters, starting with a letter <4> :P <1> It's called preg_match() ;) <4> oh true <4> that's regex right? <1> Yes. <4> I'll get around to the php regex sometimes this weekend :) <4> Enjoying php quite a bit, have to admit. <1> PHP can use PCRE or POSIX regular expressions, so chances are, you already know how to use them. <4> so what is preg_match() <4> bah nm I can rtfm <1> PCRE. <6> going to read it too lol <1> preg_*() = PCRE, ereg_*() = POSIX <4> ah <6> i would not know what the different is between posix and pcre but that mean time to read ;) <4> why e? any idea <1> Not sure why it's an 'e,' actually. <4> You can live without regex for literally years, ShadowLight <1> Indeed. <4> it's nice but while you're still beginning I wouldn't put it at a high priority <6> ok <1> And in most situations, you will use a PCRE, as it's faster and more powerful. <1> I would put it as the lowest priority if you're new. <6> alright, this way i will trust you on word until i read it ;) <2> Hrm
<1> But if it's related to your problem, it's worth a read. <2> ' <1> I didn't actually read your problem... <2> 'I'm looking into the issue' does not mean 'reboot the server while i'm trying to fix things'. .. ... <4> haha <6> i looked at the preg function on php.net and i found moer stuff about replacing or doing a search, I'm not sure to find how to use it to pattern recognition <1> What is "doing a search" if not pattern recognition? <4> While it actually is relevant to your problem, I'd sit regex on the backburner for 6 months or so while you learn more immediately useful things <4> night guys <1> Or just pay me to write the regexp for you ;) <4> hah <4> maybe someting more complicated :P <4> until tomorrow! <8> i have a table with no index or primery key. only few fields including fname (first name) and lname (last name). when i do: Select * from Clients order by fname,lname -> it doesn't sort the records via a-z. why? <6> cai it's more about i don't see how to use the function to specify that my string should be 6 character long and impair position $string[impair] should be letter and $string[pair] should be number. <1> Firstly, I certainly hope you mean $string['impair'] and $string['pair'] <1> But you just don't understand how to use preg_match(). Basically, the regular expression is run on the string, and will in turn be true or false, depending on whether a match was made. <1> Nir212: #sql (or #postgresql, #mysql, #oracle, #access, etc.). This is a PHP channel. <6> ok <6> in fact since the position of the character tested is important, i find more easy to test regular expression on a full string than on position in the string. like i already sanatize the string to remove non alphanumeric character and keep only the letter and number. <1> Why is it important? <6> it's to validate canadian zip code who are on this format : LNL NLN (L = letter and N = number) <6> H2X 2K7 as example <1> But the position doesn't matter, only the order does. <9> /^\w\d\w[^\d]?\d\w\d$/ <6> sk8ing to understand what you wrote, where should i go? <1> That actually is invalid <6> ok <9> http://www.regular-expressions.info/tutorialcnt.html <6> thanks sk8ing <9> cai: is pretty fine <1> Because \w is [a-zA-Z_] <9> cai: yeah <8> cai <1> Nir212 <9> no <8> ever happend to you that mysql didn't sort recrods with order by? <9> n1s 3k3 <1> Nir212: it does not matter what I think <9> lol <9> Nir212 is a nickname :P <1> Err, what has happened to me <9> I thought it's an example :D <6> hahaha sk8ing <1> sk8ing: ah, no. But with your regexp, numbers can replace letters. <9> no it can't <1> Yes, because \w matches 0-9 as well <1> Oh, I left that out of my defininition above <9> it doesn't <1> [a-zA-Z0-9_] <1> \w is a perl word, which can, indeed, have numbers <6> cai, the format sk8ing used, is it what you told me being regex and pcre ? <1> Yes. <9> hmm I think you're right <10> yo <6> i see, that seems pretty important to learn indeed, i think i'm going to put some more priority <10> hey sk8ing <10> sup <9> nothing <10> i got given a 'login' script by this dude at work... <9> ? syntax <10> and he does.. if ( $_POST['Email'] && $_POST['p***word'] ) { do **** } <10> thats not right is it. <1> StyleZed: eek <10> right. <9> no, it's not :) <1> That's a terrible, terrible, if <10> im trying to explain why <10> and can't <10> help me please. <10> i cant just say.. thats **** and i know its **** but i cant tell you why <6> i think i understand the way preg_match work now, i must p*** in parameter the string and the regex compare expression.
Return to
#php or Go to some related
logs:
#linux #linux cron rsync host key verification failed eretrociti romaniairc quotes, stupiditi #AllNiteCafe #php javax.com windows #asm
|
|