Re: [PHP] Help with regex (search/replace) please

2010-02-08 Thread Gautam Bhatia
hello, Hi ryan, i am not sure i am getting you on what ya want , is this something like what ya want, the code below which i wrote? function get_value() { var el = document.form_name.elements.length; for(var i =0 ; i<= el ; i++) { if(document.form_name.elements[i].type="checkbox") { var id =

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 07:53 -0800, Ryan S wrote: > Hey Ash,Bastien! > > > Rather than a regex, you're probably better off using something like > DomDocument, where you can iterate over all of the input elements in the > document, and check the attributes of each one to check if they match your

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey Ash,Bastien! Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your criteria. @Ash, You're kinda reading my mind... i did do t

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of t

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 06:43 -0800, Ryan S wrote: > Hey guys, > > As many of you might know, i totally suck at regex..so would really > appreciate some help here. > > Basically i have a html page with a lot of textboxes,radios,checkboxes etc > i need your help in the form of a regex so that whe

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Phpster
Why not just pass the value in the onclick? Onclick=doSomething(this); Would give you simple access to all the properties of that element. This.value would pass just the value. Bastien Sent from my iPod On Feb 6, 2010, at 9:43 AM, Ryan S wrote: Hey guys, As many of you might know, i to

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of t

RE: [PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Murray @ PlanetThoughtful
> On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote: > > > Hi All, > > > > I'd very much appreciate some help building a regular expression for > > preg_match_all that can differentiate between 'words' and 'phrases'. > > > > For example, say I have a string that contains: 'this is an "example o

Re: [PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Philip Hallstrom
On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote: Hi All, I'd very much appreciate some help building a regular expression for preg_match_all that can differentiate between 'words' and 'phrases'. For example, say I have a string that contains: 'this is an "example of a phrase"' I'd like to be a

[PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Murray @ PlanetThoughtful
Hi All, I'd very much appreciate some help building a regular expression for preg_match_all that can differentiate between 'words' and 'phrases'. For example, say I have a string that contains: 'this is an "example of a phrase"' I'd like to be able to break that down to: this is a

[PHP] help with regex

2004-07-30 Thread C.F. Scheidecker Antunes
Hello, I has as the output of a unzip command called from a PHP script the following: unzip test.zip Archive: test.zip inflating: arch1.txt inflating: arch2.txt inflating: arch3.txt inflating: arch4.txt inflating: arch5.txt inflating: arch6.txt The same I have from a pkware execution : pku

Re: [PHP] help with regex in preg_match();

2002-07-01 Thread Erik Price
On Monday, July 1, 2002, at 01:37 PM, <[EMAIL PROTECTED]> wrote: > I got this line that is relly giving me a pain..: > > if (preg_match("@siteUserList.cgi\?group=site177(&?)@", > $QUERY_STRING)) > > As you can see it just matches the query string when it looks like > this: siteUserList.cgi?grou

Re: [PHP] help with regex in preg_match();

2002-07-01 Thread Mirza Muharemagic
Hi, something like this: $QUERY_STRING = "siteUserList.cgi?group=site177&2345"; if (preg_match("#siteUserList.cgi\?group=site177(&?[\d]*)#",$QUERY_STRING,$array11)) { echo "found: $array11[0]$array11[1]"; } Mirza [EMAIL PROTECTED] 01.07.2002 19:37 > H

[PHP] help with regex in preg_match();

2002-07-01 Thread php
Hi people, I got this line that is relly giving me a pain..: if (preg_match("@siteUserList.cgi\?group=site177(&?)@", $QUERY_STRING)) As you can see it just matches the query string when it looks like this: siteUserList.cgi?group=site177& (with or without a "&") The thing is I need it to ma