Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    hey guys, how do i extract everything after asset/ but before first .?
    i tried:
    http[s]?://img.abc.com/asset/([^.]*)
    doesnt help
    PadharaHitesh
    @PadharaHitesh
    Hello can you send me a regex for international phone number?
    Enrico Markert
    @kxc0re

    https://regex101.com/r/xVVIFH/1 now that works but is very verbose and not really reusable:

    i would like to have some case preserving regex that does this in a more general way

    Roel
    @roelzkie15
    How can i match string with g as the first character then followed by 6 numbers?
    Enrico Markert
    @kxc0re
    @roelzkie15 ^g\d{6}
    Roel
    @roelzkie15
    :thumbsup: thanks mate!
    Yasir Arefin
    @yasirgit
    Hey Guys, what might be the possible REGEX for these types of strings "int d(java.lang.String,java.lang.String)", "android.content.Intent putExtra(java.lang.String,java.lang.String)"
    thanks
    Shivam Panjeta
    @shivam-panjeta
    How to select between only two words without using OR |
    The two words are like XYZ and NON_XYZ
    Right now I am using ^(XYZ|NON_XYZ)$ but I don't want to use OR |
    Yasir Arefin
    @yasirgit
    How to find out the encrypted strings like "1IVbYBrbhFE(izcOQz(8y" with the help of the Regular Expressions?
    Veselin Ivanov
    @vessivanov
    Hello, how can i match only 2 numbers before the dot?
    slipsnip
    @slipsnip
    I have written a regex here https://regex101.com/r/v9BQOw/1/ and my goal is to capture the : followed by any number of spaces, it seems when I enclose the first part color\d{1,2} in a positive lookahead that the regex breaks, when its not enclosed it seems to capture not only the :\s+ but also captures the unwanted color , would anyone here be able to see what is happening and explain it to me
    Eric
    @sliceofbytes
    You just need to leave the color part out of any capture group @slipsnip
    or a positive lookbehind
    (?<=color\d\d|color\d)\:\s+(?=#[\d\w]{6}$)
    should work
    Eric
    @sliceofbytes
    or if you are using it for replacement to get rid of spaces or something just capture all 3 parts seperatly, (color\d+)(\:\s+)(#[\d\w]{6}) then you can do $1: $3 for replace to get rid of excess spaces
    Sandeep Chary
    @dsandeepchary
    Hi can anyone help me in regex.
    I want a regexp to filter multiple json objects from a log file(text file).
    Later on I want to store it in database.
    Any help would be appreciated. Thanks in advance
    Eric
    @sliceofbytes
    @dsandeepchary you need to provide a sample input / expected output
    Sandeep Chary
    @dsandeepchary
    I've done it. Thanks for the reply @sliceofbytes :clap:
    kczx3
    @kczx3
    Hey all. I could use a hand with what is probably a simple regex. I need to match one lines that contain the string "birth_dt_tm" that are not preceded by "datetimezoneformat(". I tried using a negative lookbehind but both lines in my sample text are matching.
    Sample lines:
    dob = datetimezoneformat(p.birth_dt_tm, p.birth_tz, "MM/DD/YYYY")
    dob2 = format(p.birth_dt_tm, "MM/DD/YYYY;;d")
    what I tried: ^.(?<!datetimezoneformat().birth_dt_tm
    match on lines*
    Eric
    @sliceofbytes
    give me one sec
    which language for the regex?
    kczx3
    @kczx3
    PCRE
    well, using with grep
    but was passing the -P flag
    Eric
    @sliceofbytes
    (?<=zoneformat\()(\w\.birth_dt_tm)
    kczx3
    @kczx3
    That finds the opposite of what I was looking for. But changing the ?<! seems to reverse it
    Eric
    @sliceofbytes
    ahh my bad ya negative lookbehind instead of positive
    kczx3
    @kczx3
    no worries. Thanks much!
    Odell Joseph
    @dragonpiper
    Hello
    Eric
    @sliceofbytes
    sup
    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]+)?)+