#1 19-10-2018 15:36

sampwise
Registered: 19-10-2018
Posts: 1

Reading a variable string between 2 known strings.

Hey guys in the following line:

Report from [1] John Doe (RID: 2): test report

I would like to extract the RID, this of course changes every report.
How can I get this RID? I know I can get the parts of the string that wont change such as
"(RID: " and "):" but how would I get the varying number in between?

Thanks in advanced.

Offline

Board footer

Powered by FluxBB