u/folgeyharry - 2 Archived Voat Posts in v/programming
u/folgeyharry
  • home
  • search

u/folgeyharry

0 posts · 2 comments · 2 total

Active in: v/programming (2)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: I suck at regex... Can someone please explain why only example C is working here?

I tried all 3 using mono on linux and they all worked fine. Also, why use regex at all? You can just compare x to 'a', etc. I included a 4th example in the pastebin showing the complete program.

https://pastebin.com/k1HQR5hu

0 11 Jul 2019 09:43 u/folgeyharry in v/programming
Comment on: I suck at regex... Can someone please explain why only example C is working here?

put a * after [a-zA-Z], otherwise you're only going to match 1 character strings

0 11 Jul 2019 09:14 u/folgeyharry in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.