#🚀Regex

1 messages · Page 1 of 1 (latest)

young dragon
#

I wanna write regex for white space, for comma "," and for a dot "."
How can I do that?

south abyssBOT
#

<@&987246399047479336> please have a look, thanks.

south abyssBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

young dragon
#

I tried (",|\.|\s") but it's not accurate

lilac tiger
#

could you be more precise ? you want to select just the characters? or that the character string is equal to at least one character?

young dragon
#

It's for the delimiter

#

So basically splitting the string based on regex

unkempt musk
#

that said, a shorter version of the same is [., ]

#

we cant help u like that though. u have to show some examples and elaborate what u mean by "its not working"

#

cause it works perfectly fine

delicate flare
#

Also, in Java backslashes should be escaped

#

Resulting in double backslashes

unkempt musk
#

like, \ also escapes in discord markup (unless put into code fences)

young dragon
young dragon