How do i copy only 2882649 from String: "automation130214141113 (order # 2882649)" in Java selenium? : I am trying to copy only 2882649 from a string automation130214141113 (order # 2882649). Can anyone help me out?