I'm pretty new to regular expressions. I've worked out the string (?i)\$url\[([0-9])\] to match what I'm looking for. I want a string like "this is $url[2] a string" to be passed through that regex, have 2 passed to a function, which returns a string, and $url[2] is replaced with that string. How do I do that?
-
Does the regex work? Have you learned Python? What did you try?agf– agf2011-08-20 22:04:34 +00:00Commented Aug 20, 2011 at 22:04
Add a comment
|