« first day (1357 days earlier)      last day (2435 days later) » 

 
2 hours later…
 
3 hours later…
14:05
Hi, I'm wondering if anyone could help me out, I have a Regex filter that checks for ^(([a-zA-Z0-9])+((-)([a-zA-Z0-9]+))*)$ but am unsure as to what it means
I have an issue where, the regex filters out all incorrect characters, and I have a list with correct characters, but these too are being filtered out
14:47
@Gerwin can you setup a regex101 link with correct chars and incorrect ones ?
In all honesty, I don't know what a regex101 link is
regex101.com/r/35cgjw/1 like this? @CSᵠ
It's for a regular e-mail system
@Gerwin yes, but add correct and incorrect test strings in the textarea
what should this regex match against?
any characters that could possible be harmfull, so in the send area it should test for ? , () [] {}
etc
There are currently no correct or incorrect test strings
/ \ ' "`~% ^& * # , . < > : ; }{ ][ |\!
15:10
@Gerwin ok what are you aiming this regex for?
to filter who a client sends e-mails to
. shouldn't be excluded that's a typo
14
A: PHP Sanitize Data

CSᵠThat script has some nice functions but it doesn't do a good job at sanitizing! Depending on what you need (and want to accept) you can use: abs() for positive numbers (note that it accepts floats also) preg_replace('/[^a-zA-Z0-9 .-]/','',$var) for cleaning out any special characters from stri...

it's for c# ^^
is there any difference?
as the regex answer in there ^
thank you D:
:D *
i'll take a look :)
15:12
maybe filter out anything not acceptable by you
this should be easier
prepare a list of accepted chars, and negate it with [^
thanks ^^
then, either sanitize it or reject the whole input
alright ^^

« first day (1357 days earlier)      last day (2435 days later) »