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

Script, remove CR and LF, ... #811

Open
ilcaa72 opened this issue Mar 6, 2025 · 0 comments
Open

Script, remove CR and LF, ... #811

ilcaa72 opened this issue Mar 6, 2025 · 0 comments

Comments

@ilcaa72
Copy link

ilcaa72 commented Mar 6, 2025

Hello, i see examples on using ChaiScripting but cant seem to get it to work...

main request: replace the CarriageLine and NewLine returns on a copy with a space.

var x = "";
if( clip.DescriptionMatchesRegex( "\r\n" ) == 1)
{
var x = clip.DescriptionReplaceRegex(".*", " ");
}
clip.SetAsciiString(x);
return false;

result: it returns 'CF_TEXT' to my clipboard
I also tried AsciiTextMatchesRegex() and result is same

what am i missing, what do i need to add to return the original string without CF LN? thanks.

thanks

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

1 participant