Disclaimer: This answer is for quick-and-dirty scripts, and may lack in robustness and efficiency. Suggestions here should probably not be used for code that survives more than a few hours.
If you're unwilling to learn regex (and you should be willing to learn regex!), you can split on value=". Probably really inefficient, but simple is easier to debug.
values = []
with open('myfile.txt') as infile:
for line in infile:
candidates = line.split('value="')
for s in candidates[1:]: #the first token is not a value
try: #test if value is a number
val = int(s.split('"')[0])
except:
continue
values.append(val)
If you're specifically looking at HTML or XML, Python has libraries for both.
Then, for example, you can write code to search through the tree for a node with an attribute "name" that has value "uber_token", and get the "value" attribute from it.
Very dumb Python 2 example that doesn't require learning too much about ElementTrees (may need simple corrections):
import xml.etree.ElementTree as ET
tree = ET.parse('myfile.xml')
root = tree.getroot()
values = []
for element in root:
if element.attrib['name'] == 'uber_token':
values.append(element.attrib['value'])
value="XXX"part? If its just the latter, use a regex.<input type="hidden" id="" name="uber_token" value="123456789"/>is one per line. Then you can just seatch fornameand parse the two quotations after. If its equal to uber_token then findvalueand parse between the two quotations after.