Search found 9 matches
- Wed Jun 17, 2009 4:24 pm
- Forum: Regex
- Topic: PHP Regex word boundary pattern ignores / in urls
- Replies: 2
- Views: 1846
PHP Regex word boundary pattern ignores / in urls
hi, I'd like to correct the following REGEX pattern so that it no long effects urls or text proceeded by a forward slash / example, the following preg_replace will take the string reviews/payroll-relief-from-accountantsworld.html payroll and assuming payroll is the needle, it will return reviews/<a ...
- Mon Jun 01, 2009 4:11 pm
- Forum: Regex
- Topic: word boundary won't seem to work.
- Replies: 7
- Views: 2113
Re: word boundary won't seem to work.
perfect,
Thanks a lot, that was actually much easier than I thought it would be.
Thanks a lot, that was actually much easier than I thought it would be.
- Mon Jun 01, 2009 1:12 pm
- Forum: Regex
- Topic: word boundary won't seem to work.
- Replies: 7
- Views: 2113
Re: word boundary won't seem to work.
sorry, I'd like to see the following <p><a href = "http://www.theprogressiveaccountant.com/">test</a></p><p><a href = "http://www.pmgb2b.com/">blah</a></p><p><a href = "http://www.yahoo.com/">ok</a></p> etc etc. basically I have two arrays and a string. It should cy...
- Mon Jun 01, 2009 11:25 am
- Forum: Regex
- Topic: word boundary won't seem to work.
- Replies: 7
- Views: 2113
Re: word boundary won't seem to work.
Hard to say without seeing the input string. Can you post it? Also post what the desired result should be and what result you are currently getting. sure thing. Here's the Input String: <p> test</p><p>test</p><p>blah</p><p>ok</p><p>test test >test< blah</p><p>blahokblah </p><p> </p><p>bl...
- Fri May 29, 2009 1:31 am
- Forum: Regex
- Topic: word boundary won't seem to work.
- Replies: 7
- Views: 2113
word boundary won't seem to work.
hi, I'm using the following pattern in order to append links to specific words within an array. However the pattern I'm using seems to completely ignore the word boundary. $keywords = $this -> params->def('keywords'); $words = explode(",", $keywords); $keywordLink...
- Fri Aug 15, 2008 4:04 am
- Forum: PHP - Code
- Topic: PHP noob question :P
- Replies: 6
- Views: 346
Re: PHP noob question :P
lol, yea i just found out the hard way. it's ok though, I just used a standard html link, suites my purposes fine 
- Fri Aug 15, 2008 3:00 am
- Forum: PHP - Code
- Topic: PHP noob question :P
- Replies: 6
- Views: 346
Re: PHP noob question :P
blah, I just split everything up. It works fine, I'd still like to know if there's a way to execute methods via some html button though basically I pulled the Jobs.php file apart and modulated the application by creating seperate php files. I then included the Query.php file in my index.php file Que...
- Fri Aug 15, 2008 2:49 am
- Forum: PHP - Code
- Topic: PHP noob question :P
- Replies: 6
- Views: 346
Re: PHP noob question :P
hmmm...I think I understand-how would I execute the insert method upon placing it into the Jobs.php file. An easier solution for me would be to simply create Insert.php then place the appropriate algorithm-I'd like to make use of functions if possible though. Is there anyway to force the submit butt...
- Thu Aug 14, 2008 11:52 pm
- Forum: PHP - Code
- Topic: PHP noob question :P
- Replies: 6
- Views: 346
PHP noob question :P
Yea, so most of my experience thus far has been geared towards Java. I only just started working with "proper" html(CSS), PHP & MySQL. I'm trying to create an HTML form which forwards the information given to a php method via $_Post. here's the code: <?php include("Jobs.php"...