I get an issue using REGEX, it is probably about my REGEX but I need some helps.
I need to match all string containing "D"...
Test string 1 : D
Test string 2 : aaaaaaDqqqqq
Test string 3 : Dssssssss
Test string 4 : D4564646
Test string 5 : 1321313D2312
Test string 6 : ppppprrrrrr
My regex :
/^.+D.+|(:?^|\s)D$/gi
It works only for 1 and 2 and it should works for 1, 2, 3, 4 and 5.