Question: I'm trying to combine input from a user as part of a regex search. Since I only want the user-provided pattern to be searched in particular lines, I want to combine (i.e., concatenate) the pattern provided with a pattern. What's the best way to do this in python?

Here is my code, which at the moment, doesn't work because an addition operator doesn't seem to be supported by re:

```
import re

q1=re.compile(r'^Organism.*')
q2=re.compile(r'(moth)')
q3=re.compile(r'.*</td>')

s="Organism: moth </td>"

test=re.search(q1+q2+q3,s).group(1)

print "test", test

```

Answer: 
last is a function.
So a little change in the code might do the trick:

```
$(defaultOptions.removeButton).click(function(){
        $(defaultOptions.copyToLocation).children().last().remove();
    });

```

The idea is to get the children of the repository of items you got... then the last one... then remove...
[.last()](http://api.jquery.com/last/) is a method

```
$(defaultOptions.removeButton).click(function(){
   $(defaultOptions.copyToLocation).last().remove();
                                        ^^
});

```