Help needed to get one regex to capture a <option> content highlighted below in parenthesis in the following 2 situations...
1) <select name="test"> <option value="a">a</option> <option value="b">b</option> (<option value="c" selected>c</option>) ... <option value="nx"></option> </select>
2) <select name="test2"> (<option value="a">a</option>) <option value="b">b</option> <option value="c">c</option> ... <option value="ny"></option> </select>
nx and ny denote an arbitrary number of option tags.
if "selected" is found within an <option ...></option>- capture the selected <option ... selected...></option> to backref \1
*otherwise* capture the first <option value="a"></option> within the <select>...</select>
using perl 5.8.0
Thanks in advance :)
What would be the best way on an online quiz- using a php/mySQL framwork to make a person - once they ve started the quiz have to finish or get zero s? Zend? Ajax? Ruby? Perl? Just sessions / cookies? (something else?)
(I d like it if they close the browser that it would submit a call as well- and I m thinking that might have to be done with JavaScript)
Code:
open (NGC_Input_File-"ngc_update.xml");
Problem:
I m new in perl and i have a code above. but i wanted to add where it will pick up any file that starts with ngc (ngc*.xml). I tris experimenting by adding * and othre stuff but it wont work plase help??
Also is it possible to add a directory. Let say C:\perl\bin in the code? if so how?
can u please sign this petition to keep my fav tv show on the air. i will give the points to whoever signed the most signatures.
http://www.petitiononline.com/mod_perl/signed.cgi?wfabcfam
is the data plan optional?? if i do need it and don t get it what happens??
im 15 and i love my computer but i dint do gcse ict.
im not like the regular 15 year old that just goes on msn i already know html and im currently learning python and perl. also i know all about how computers work and how there put together(i built my own with no help- i just bought the parts and did it with no help or instructions.)i can identify whats wrong with a computer and get it right every time.
as well as all this im starting a business building and selling computers.
Please help me computers are the only thing im interested in and i really want to get a good qualification i them.
I learnt about all these things on my own without any help
No comments:
Post a Comment