How would I grab the first word after '\id '
in the string?
string:
'\id hello some random text that can be anything'
python
for line in lines_in:
if line.startswith('\id '):
book = line.replace('\id ', '').lower().rstrip()
what I am getting
book = 'hello some random text that can be anything'
what I want
book = 'hello'