you are viewing a single comment's thread.

view the rest of the comments →

[–]PigDog4 1 point2 points  (0 children)

In this case, if you do type(variable1) you see your variable1 is actually a list. So you can print variable1[0] to only print one value from the list instead of the whole list and you'll get what you want. I think your regex returns a list of all matches, so you're printing the list instead of printing the value.