Using Python I am currently trying to strip out part of a string that occurs between two characters. The string can be different lengths, so character counting will not work. An example of what I am looking for would be:
172.-.221 - - [07/-20-:16:36:27 -0500] Firefox/17.0" ** 0 s/ 950 ms **
The desired section of the string is 0 s/ 950 ms
, and I have noticed that it occurs between the pairs of double asterisks (** **
) consistently.
How would I grab just the part of the string between the two double asterisks (**
)? How would I either output that to the screen or save that to a file?