Menu

#6 RegEx Modifiers for Global Single Line

v4.4.7
open
nobody
None
1
2022-07-17
2017-10-03
Anonymous
No

Hi, is it possible to return only unique/distinct matches from regex search? I was trying to find a way to use a global single line modifiers /gs but can't find a way to do it in astrogrep. I'm trying to implement an example shown here: https://regex101.com/r/ozFNPV/1

Discussion

  • Jackslade

    Jackslade - 2017-10-03

    Global is already applied, but single line is not and AstroGrep currently doesn't expose that option. We will look into supply the available options for regular expressions that are usable via the .Net regular expression engine. https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-options

     
  • Anonymous

    Anonymous - 2017-10-03

    Thank you! Is there a simpler way to do a search for a regex like this (datasource=\"([^"])\")
    really datasource="dsn" in a large code base, where the search results would return all the unique dsn values used in the code?

     
  • Jackslade

    Jackslade - 2022-07-17
    • Group: v4.2.4 --> v4.4.7
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.