jump to:all–mastodon–bluesky–lemmy–lobsters–dev–stack–wiki–rss–hn
wwebbit
view: | | |

Knowledge / Stack Overflow · hot matching “regex”

1 shown · updated 9m ago · read only
  1. Regex with optional whitespace/dot combination (stackoverflow.com)stack

    20 points by StOMicha in stackoverflow.com · 2d ago · stack comments

    My regex is: /X1( ?C?(arbon)? (Gen(\.? ?)\b([0-9]|[1][0-3])\b))/gi Testing it, it's OK with X1 Carbon Gen.8 X1 Carbon Gen 8 but not with: X1 Carbon Gen8 Why and how to include Gen.8 into the findings?
    filed under regex