Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with using TStStreamRegEx after updating from version 4.04 to the current version #15

Open
LeoRic49 opened this issue May 6, 2021 · 1 comment

Comments

@LeoRic49
Copy link

LeoRic49 commented May 6, 2021

Hello,

I am using Delphi 10.3.
I just updated the SysTools component from version 4.04 to the current version and am having problems using the TStStreamRegEx component.
I fixed Stream problems for the input data, but now I have a problem in the value returned by the component, it truncates the end of the string (last 2 characters).
In the old version, the deletion of the last 2 characters was used to delete the CR / LF characters which were added at the start of the processing, but a priori, they are no longer there and the processing continues to delete them.
I have attached a test program to describe the problem.
Test_StExpReg.zip
Can you help me see if the problem is with the data sent to the component or with the TStStreamRegEx component itself?
Regards.

@romankassebaum
Copy link
Contributor

The problem is in TStStreamRegEx . It mixes ANSI and Unicode. I have now an experimental version that works with your example but I'm sure that there are still issues. You can try it or what I would recommend is, that you use the Delphi TRegEx class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants