Please tell me the code for extracting a specific string. crying

Asked 1 years ago, Updated 1 years ago, 112 views

E513-180612001/ET510CU-B1/82419-T/1800/90/18.07.05/FNH450.1

You are trying to extract (dark) color for the string from the MFC. I don't know how to code.

The characters are constantly wrong, so you just need to read the values (1800 and FNH450.1).

Please tell me.

string extract

2022-09-21 18:52

1 Answers

You have to use the regular expression . https://www.codeproject.com/Articles/13320/Using-Regular-Expressions-in-MFC

If you think of two "dark" areas as "four-digit characters" and "full-string end" respectively, the JavaScript regex that extracts those areas is Please refer to it.


2022-09-21 18:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.