title: How to remove Substring from substring start until the end of the string in Java
body: <p>I have a method using RestAssured that establishes the bearer token and it establishes the detailed cookies that I need to include in request headers for other API endpoints.</p>
  <p>When I call cookies.getDetailedCookies.toString() I get the below (where cookies variable represents Rest Assured Http Cookie):</p>
  <p>&quot;amlbcookie=01;Path=/;Domain=mydomain.com;Secure;HttpOnly
  tvgauthcookie=C6nl2pVadONSclRAaL1gxWd2-60.<em>AAJTSQACMDYAAlNLABxFOTFSWk1nUW9Td1NJOHhrSHppUW1FUHdKdG89AAR0eXBlAANDVFMAAlMxAAIwMQ..</em>;Path=/;Domain=mydomain.com;Secure;HttpOnly
  <strong>BIGipServerqavgamws-https-pool=1234567890.12345.0000;Path=/;Secure;HttpOnly</strong>&quot;</p>
  <p>One problem is that in Postman when I add the bearer token in Authorization header, it automatically gets the necessary cookies and is shown in the Cookie header as seen below.  I am not seeing the <strong>BIGipServerqavgamws-https-pool=1234567890.12345.0000;Path=/;Secure;HttpOnly</strong> in the Postman Cookie header value (I suppose it is a browser session cookie which is not needed for submitting the request via Postman):</p>
  <p><a href="https://i.stack.imgur.com/aCj0v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aCj0v.png" alt="enter image description here" /></a></p>
  <p>Is there a way to remove this particular cookie using java Starting with BIG* until the end of the string?</p>