Question: May be this question is not appropriate for this forum , but i tried a lot on google but didnt found any good book for YUI3 for begineers except cookbook.
I need help, thats why i am posting.
I am looking for a good book or tutorial (except YUI3 library) that explains complete website development using YUI for front end and spring framework for server coding. It it includes a complete project like building any forum or e-commerce site , it will be very helpful for me.

Thanks, and apologies if i posted asked something wrong on this forum,

Answer: 
The following code uses a single regular expression to match values on two separate lines.

In general, this isn't done; a single expression is matched per line, for example in a loop.

source
------

```
import re

mystring = '''<name="some_name" >
<price="some_price" >
'''

pat = re.compile('\w+=.(\w+).+\w+=.(\w+)', re.DOTALL)
res = pat.search(mystring)
print res and res.groups()

```

output
------

```
('some_name', 'some_price')

```
You could use lookbehinds with logical OR operator to print the values of `name`, `price` tags.

```
>>> import re
>>> s = '''<name="some_name" >
... <price="some_price" >'''
>>> m = re.findall(r'(?<=<name=")[^"]*|(?<=<price=")[^"]*', s, re.M)
>>> for i in m:
...     print i
... 
some_name
some_price

```