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

[FEAT] Regex replace #32

Closed
flexiondotorg opened this issue Oct 9, 2023 · 7 comments
Closed

[FEAT] Regex replace #32

flexiondotorg opened this issue Oct 9, 2023 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@flexiondotorg
Copy link
Contributor

flexiondotorg commented Oct 9, 2023

Is it possible to use regex to do string replace?

I use DecAPI to put live counters in my stream. DecAPI returns text and in most cases always just a number, but the viewercount endpoint returns channelname is offline when the channel is not live as the "number" of live viewers when the channel is streaming.

I'd like to replace "channelname is offline" with "0". Is that possible using URL Source regex?

@royshil
Copy link
Collaborator

royshil commented Oct 9, 2023

that's a very good idea... i will research what's possible in the realm of regex. should be relatively simple

thanks for the feedback!

@flexiondotorg flexiondotorg changed the title Regex replace? [FEAT] Regex replace Oct 10, 2023
@royshil royshil added this to the 0.1.2 milestone Oct 10, 2023
@royshil royshil mentioned this issue Oct 10, 2023
@royshil
Copy link
Collaborator

royshil commented Oct 11, 2023

i'm working on this, should release soon

@royshil
Copy link
Collaborator

royshil commented Oct 12, 2023

implemented in #34

@royshil
Copy link
Collaborator

royshil commented Oct 12, 2023

@flexiondotorg
Copy link
Contributor Author

@royshil I am updating my build system to include your roy.output_regex_replace branch. Will report back...

@royshil royshil added the enhancement New feature or request label Oct 13, 2023
@flexiondotorg
Copy link
Contributor Author

flexiondotorg commented Oct 13, 2023

Perfect!

image

Thank you 🙇

@royshil
Copy link
Collaborator

royshil commented Oct 13, 2023

done

@royshil royshil closed this as completed Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants