Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Odell Joseph
    @dragonpiper
    I'm trying to use this pattern with the services ((echo|bravo|charlie)(?:[\s,]+))+
    but all the of the matches are the same word
    Eric
    @sliceofbytes
    Do you have an example of what you are trying to match
    and what you are trying to avoid matching
    Odell Joseph
    @dragonpiper
    I'm expecting Full Match: with the services tango, echo, bravo | Group 1: tango | Group 2: echo | Group 3: bravo
    Eric
    @sliceofbytes
    Something like this
    with the services(?:\s)((cat)?(tango)?(echo)?(bravo)?(?:[,\s]+)?)+
    Daniel Sánchez
    @panconjugo_twitter
    Hello everyone, could someone help me understanding how to create a validation for a specific format? I need to check this two formats

    KYYYY#### (9 characters - the last 4 are digits)
    KDEYYYY##### (12 characters - the last 5 are digits)

    where YYYY is the year

    those can be uppercase or not
    any idea?
    Eric
    @sliceofbytes
    pretty easy
    Daniel Sánchez
    @panconjugo_twitter
    @sliceofbytes for me it's really difficult to understand how it works unfortunately :(
    Eric
    @sliceofbytes
    ([KDE]+)(\d{4})(\d{4,5})
    basically saying
    Daniel Sánchez
    @panconjugo_twitter
    @sliceofbytes awesome! thanks a lot. So if I also want to allow lowercase I would just do this? ([KDEkde]+)(\d{4})(\d{4,5})
    Eric
    @sliceofbytes
    @panconjugo_twitter ya, and maybe some slight modification depending on what you want to filter out
    Eric
    @sliceofbytes
    Is there a better way to do this regex
    seuaCoder
    @seuaCoder

    Hello,

    this regex matches spin tag { text | text } with nested supported. {(((?>[^{}]+)|(?R))*)}

    I would like to replace { and } by [S] and [/S]

    this is my attempt : [S](((?>[^[S][\/S]]+)|(?R))*)[\/S] but it matches only the first tags in a text
    NiX
    @nixfreakz_twitter
    I have file-dyhEi0bPnHk.jpg wouldn't this regex work to find " \D\w+ ?
    Alexis Georges
    @SuperITMan

    Hello everyone :blush:
    I'm trying to have a regex matching this I mention a @username to test but which does not match this I mention a @scope/package to test
    I made this regex but it is not working :confused:

    /\B@[a-z]{1,30}(?!\/)/

    Could anyone help me for this ? :blush:

    What I want is when there is / just after @scopeto not match...

    Thanks

    Eric
    @sliceofbytes
    ^.*@((?!\/).)*$
    @SuperITMan
    Alexis Georges
    @SuperITMan

    Actually, I should precise my ask :blush:
    Let's take the following string

    this is a @username1 mention with another @username2 and a @scope/package mention

    The @username1 and @username2 should match but not the @scope/package

    @sliceofbytes thanks for your suggestion anyway !

    My current (not working) regex is: /\B@(\w{1,40})(?!\/)\s\w[^\/]/

    But if my text is this is a @username it will not match

    Thanks again for your help!
    Eric
    @sliceofbytes
    (@\w+(?!\/)(?=\s))
    @SuperITMan
    Alexis Georges
    @SuperITMan
    Thanks @sliceofbytes it works well :blush:
    Eric
    @sliceofbytes
    @SuperITMan no problem
    brunomarkman
    @brunomarkman
    Someone can help me to find some examples for <Blazorise.TextEdit MaskType="MaskType.RegEx" EditMask="< what can I put here??? >" /> I tried to use regular expression in many different ways but no luck. Thanks guys.
    Rajat
    @rajataudichya
    hello, I need some help with regex
    I search the whole damn internet but I was not able to get the right regex to capitalize the first letter that comes after a colon
    M: hello there.
    M: Hello, there.
    Rohit Yadav
    @rohyadav
    anyone help me out with adding two regex into one
    ^[1-9][0-9]*$
    ^\d+(\d{0})?$
    Eric
    @sliceofbytes
    @rohyadav what are you trying to match
    sample matches help
    Rajat
    @rajataudichya
    Why make a group when no one is there to help?
    KimJohn Quinn
    @kjq
    Is this the room to ask how-to general regex questions?
    KimJohn Quinn
    @kjq

    I am trying to match against a sentence like this: CONTAINS A, B C. MAY CONTAIN X, Y, and Z CONTAINING 1, 2 and 3 and need to capture groups that start with CONTAIN or MAY CONTAIN. Basically, I want to split this into groups where the start is one of those terms and if the same word appears within ignore that.

    CONTAINS A,B,C
    MAY CONTAIN X,Y and Z CONTAINING 1,2,3

    To make it worse, there can be variations, for now just CONTAIN, where the start may be CONTAIN, CONTAINS, CONTAINING. In any of those cases the expected groups would be the above still.
    Within each "matched" group there can be any combination of characters and numbers (i can extract the symbols).

    Twitter Tweets
    @mrjakepavek_gitlab
    Hello everybody, Would someone like to help me with an expression I am working on?
    Tyler Frazier
    @geosimafrica_twitter
    I'm trying to insert a new line before finding a patter that starts new line some characters then a colon followed by a new line
    a = re.sub('^.+?(?=:)', '\n\1', text)
    where the search tried to find every time there is a name followed by a colon (i.e. Barry:, or Adam:) and then inserts a new line before that line