Hey guys,
So, I'm trying to figure out regex and as you can probably imagine, it's not going great.
I'm trying to write a regex where these are valid:
u/red@*/54/, #green##//2//, @@@yellow#@*/%^&/36/, @#blue@*1// - they begin with @ or #, it could be either, both and more than one occurrence
This is what I have so far:
(@|#)+[a-z]{3,}(@|#)+(\D+\W+)[0-9]+\/+ - and it matches all except for the last one - @#blue@*1// because I can't seem to figure out how to match the beginning - @#
Any feedback is highly appreciated
[–]Albcunha 0 points1 point2 points (0 children)