Hi Everyone
I need a regex to validate don't contain only symbols and only symbols white space word, for example
"++----"---++())" or "===(())" Test.
I tried to use this
^[\.\+\-\*\/\,\'\;\]\}\[\{\(\)\&\^\%\$\?\\\s\#\@\!\~\-—`<>?]+(\s.*)*$,
but in outsystems it doesn't work.
Can anybody help me with this issue
Your regex only matches if a space is placed directly after a special character in your set (special characters or starts with a space):
.+-*/,';]}{()&^%$?\#@!~-`<>?
Wouldn't it be easier to do something like [^a-zA-Z0-9]?This will match any character not present in a-z or A-Z or 0-9.
Next you matching on a space/whitespace character and any character after this.This means your regex will match (SPECIALCHARACTERS)(SPACE/WHITESPACE)(ANYCHARACTER)
If your goal is to try and match ===(()) then your regex will not work.... instead something like:^[^a-zA-Z0-9]+.*$
Will match your input, but then again, I'm not very sure what your goal is here, your text is a little bit confusing. (google translated from your native language into english perhaps?)
Joey Moree wrote:
in that way i can have for example "???? ??????" and a-z doesn't contain these letters.
gurgen10 wrote:
sorry I wrote in Armenian, I would say what can I do I case of for example Armenian or Russian letters
With my expression, it tooks the opposite
i want to get
+----mfkkffe44555
mkvvmveve+--*888
sdcdscdscdscs
kcsdokcodsc454/***ijscjsd
such words, but including Armenian letters and other letters too
Hey Gurgen10,
I can understand that, sorry.
As I said, your regex is working, but it might not be the intended result, what is the input and what is your desired output?
Again the following will match your regex :(SPECIALCHARACTERS)(SPACE/WHITESPACE)(ANYCHARACTER)
Hi,
Check if the solution attached helps you.
Regards,
Marcelo
Hello,
I have tried Regex "^[a-zA-Z0-9]{4,10}+$" for Alphanumeric characters and its length should be between 4 to 10 although it is working fine in other regexes online compiler but throwing an error in outsystem by saying
"- Nested quantifier +" Why so??
Regards
Ananya