| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,272
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Regex - I hate it :P Hello, I'm trying to do the following I have a list (BIG) of things like <option value="434">Intel Pentium EE 965 Presler, 3733/266, I975X, DDR2-667</option> I want to take this list and remove the value="434" part.. So it is just like <option>Intel Pentium EE 965 Presler, 3733/266, I975X, DDR2-667</option> I want to do this using preg_match or another regex php function.. It will always be 3 digits (NNN) and nothing else. PS. Numbers are not all 434.. They are a variety of numbers. - Steve
__________________ I feel old.
Last edited by iNod; 05-02-2007 at 09:36 PM.
|
| |
| | #2 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code: |
| |