-
Notifications
You must be signed in to change notification settings - Fork 114
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
First occurence in Regex #2
Comments
Nice suggestion! Currently, we are leveraging Java's regex matching under the hood to enable regex matching, but we can definitely look into adding more complex arguments. Would you please be able to provide examples of what use cases you'd expect to use this functionality in? |
sure, I would like to replace the first occurrence of the dot for Origin bypass.
|
Any workaround that comes to your mind, please? |
Rather hacky but you could match on the full URL. I.e. something like regex
match "(http(s):.*)\.(.*)\.com" and use matching groups to recreate the
same URL without the first dot in.
Alternatively, you could use a negative lookahead in the match.
|
It took me a while to figure out how. Very hacky way indeed. I believe this is an interesting feature request for BChecks. Thank you @A-J-C |
Hi, is there a possibility to use
regex_replace()
to replace the first occurrence of a single character ?I mean can we have a
count=1
like in pythonThe text was updated successfully, but these errors were encountered: