Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 18 results for
regular-expresion
- Page 1
PHP Regular Expression - Cnfounded
Programming
Web Development
9 Years Ago
by dawbin
…;>.*?<\/div>/m',$htm,$a); Is there some
regular
expresion
magic I am missing?
Regular expresion help
Programming
Software Development
13 Years Ago
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
13 Years Ago
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
11 Years Ago
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
15 Years Ago
by shaybery
This
regular
expresion
is not good !!! --------------------- if ($line=/(.*)=(.*)(#+.*)/){ my ($val,$key,$comment)=($1,$…
Re: PHP Regular Expression - Cnfounded
Programming
Web Development
9 Years Ago
by pritaeas
What's your input?
Re: PHP Regular Expression - Cnfounded
Programming
Web Development
9 Years Ago
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
19 Years Ago
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
13 Years Ago
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
21 Years Ago
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
15 Years Ago
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
12 Years Ago
by borlam
find . -name \'*jrAPS*_output.log\'|xargs egrep "a
regular
expresion
"
Re: Need help with this
Programming
Software Development
9 Years Ago
by aradicev
… even grep with which you could extract the size using
regular
expresion
.
Re: Finite Automata
Community Center
16 Years Ago
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
15 Years Ago
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
15 Years Ago
by katharnakh
[icode]print "$1, $2, $3", $/ if ($line =~ /(\w+)=(\".+?\"|\'.+?\'|.+)\s*(#.*|)/); [/icode] katharnakh.
Re: How to match "key=value #comment"?
Programming
Software Development
15 Years Ago
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
16 Years Ago
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…
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC