On Monday, October 10, 2016 at 3:58:56 PM UTC+1, infos...@gmail.com wrote:
> Hey guys!
>  
> I am new to learning regex in python and I'm wondering how do I use regex in 
> python to store the integers(positive and negative) i want into a list!
>  
> For e.g.
>  
> This is the data in a list.
>  
> [u'\x1b[0m[\x1b[1m\x1b[0m\xbb\x1b[0m\x1b[36m]\x1b[0m (A=-5,B=5)', 
> u'\x1b[0m[\x1b[1m\x1b[0m\xbb\x1b[0m\x1b[36m]\x1b[0m (A=5,Y=5)', 
> u'\x1b[0m[\x1b[1m\x1b[10m\xbb\x1b[0m\x1b[36m]\x1b[0m : ']
>  
> How do I extract the values of A and B and store them in a variable I want 
> using regex?
>  
> Thank you and appreciate it :)

What makes you think you need a regex?  Why don't you write some code and when 
you have problems, post it here.  Then we'll give you some answers.

Kindest regards.

Mark Lawrence.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to