PHP Regular Expression - Cnfounded Programming Web Development by dawbin …;>.*?<\/div>/m',$htm,$a); Is there some regular expresion magic I am missing? Regular expresion help Programming Software Development by vbx_wx [code] text = "Some text here 09:00 - Movies 10:00 - Cartoons 11:00 SPorts .... 20:00 - News Another text here" [/code] I am trying to get only the parts with the time in front.Here is my code: [code] match = findall('\d\d:\d\d\s-\s\D+', text) [/code] My problem is that at the end i said to read until finding a digit,and when… Re: Regular expresion help Programming Software Development by TrustyTony I think easiest would be to just post process apropriately the last match from list of matches. You could also prove \w+ instead of \D+. Re: Javascript Regular Expression Programming Web Development by techyworld 1+2=3 regular expresion /\d[\-+]\d\=\d/ ,Is the regular expression good for the above statement?? How to match "key=value #comment"? Programming Software Development by shaybery This regular expresion is not good !!! --------------------- if ($line=/(.*)=(.*)(#+.*)/){ my ($val,$key,$comment)=($1,$… Re: PHP Regular Expression - Cnfounded Programming Web Development by pritaeas What's your input? Re: PHP Regular Expression - Cnfounded Programming Web Development by dawbin $htm=file_get_contents("http://www.buydonthold.com/category/blog/"); Re: Is there a program that creates DFA from expression Programming Computer Science by bunty … mine i need a cog\de that can conver a regular expresion to NFA and then to DFA andthen compare the 2… regular expressions to find out if they are equal. please do … Re: (newbie )Want to extract keyword from text in atext area Programming Web Development by kesav use regular expressions ereg_math or preg_match if you are not familiar with regular expresion, use simple strpos('textarea content','searched word'); Re: Can't get samba to work! Hardware and Software Linux and Unix by knalb … you have to put a hostname in, just use a regular expresion like [a-zA-Z0-9] which should allow any alphanumeric… Re: C# equivalent for the PHP strip_tags() Programming Web Development by raziane use regular expresion to strip tags, like [code=asp.net]System.Text.RegularExpressions.Regex regHtml = new System.Text.RegularExpressions.Regex("<[^>]*>"); string s = regHtml.Replace(InputString,"");[/code] Re: Using find in a bash shell script Programming Software Development by borlam find . -name \'*jrAPS*_output.log\'|xargs egrep "a regular expresion" Re: Need help with this Programming Software Development by aradicev … even grep with which you could extract the size using regular expresion. Re: Finite Automata Community Center by kelvinco … can i convert these to Finite automata this is the regular expression (101+111+100)*(0+1)*(0+1)(00+101… finite automaton of this.. i almost got this FA but expresion on th e last part (10+01)* really fuck of… Re: How to match "key=value #comment"? Programming Software Development by mattjmorrison I'm not sure if your goal is to write a single regex to do this for you...but I wasn't able to get anything to work...here is what i came up with for you... [code=perl] foreach my $row (@rows){ if ($row =~ /^.+?=".+?"/){ $row =~ /^(.+?)=(".+?")\s*((#.*)?)/; print "key($1)=val($2) c($3)\n";… Re: How to match "key=value #comment"? Programming Software Development by katharnakh [icode]print "$1, $2, $3", $/ if ($line =~ /(\w+)=(\".+?\"|\'.+?\'|.+)\s*(#.*|)/); [/icode] katharnakh. Re: How to match "key=value #comment"? Programming Software Development by mattjmorrison katharnakh - you were close, except it doesn't work for shaybery's first test case....this does however [code=perl]print "key($1)=val($2) c($3)", $/ if ($line =~ /(\w+)=(\".+?\"|\'.+?\'|.+?)\s*(#.*|)/);[/code] that last ? was missing....which caused $2 to be "b #c" instead of just b...the last .+ needs to be more … Re: Replace String Programming Web Development by peter_budo … or character seqeuances. However your example shows switching of strings/regular expresions so there is no point in using it. In… carefull with it, as it will be replace any matching expresion with your replacement string. [code]String strName = "My name…