2009-08-09, 08:23
Hmmm... No answers. Guess I'll have to specify my current problem more specific.
What I want to do right now is to do a expression that says
This ought to be possible, right?
I tried reading up (since I'm quite new to regexp) and came to the conclusion that some if-then construction would be good. I tried
Since I'm not really sure what I'm doing here I guess I'm reasoning completely backwards. Surely there must be some regexp expert around who can point me in the right direction?
/Daniel
What I want to do right now is to do a expression that says
Code:
If $$9 contains a year, then use
<a href="/filmer/([^"]*)">([^<]*)</a> \($$9\)
otherwise use
<a href="/filmer/([^"]*)">([^<]*)</a>
This ought to be possible, right?
I tried reading up (since I'm quite new to regexp) and came to the conclusion that some if-then construction would be good. I tried
Code:
<a href="/filmer/([^"]*)">([^<]*)</a>(?($$9=\d)( \($$9\)))
Since I'm not really sure what I'm doing here I guess I'm reasoning completely backwards. Surely there must be some regexp expert around who can point me in the right direction?
/Daniel