Feedback [Feature Request] Regex for Search & Replace window

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Rekenq, Jan 9, 2019.

  1. Rekenq

    Rekenq Member

    Joined:
    Sep 26, 2018
    Posts:
    11
    It would be great to have a checkbox on the Search & Replace window that would allow to use a Regex for searching instead of the exact string search (with the options of case sensitive and whole whord only).

    Imagine you have good sized project and you want to search for places where you have used the instance_create_layer function for objects created in an "Enemy" layer. Since there are 2 parameters (x and y) before the layer one, right now you have no choice but to search for all the usages of instance_create_layer, and read every entry so you can see where you used "Enemy".

    With a regex you could filter out results by using something like this: instance_create_layer(.*,.*,\s*"Enemy", as the search string, saving you the time of going through the results and filtering them out yourself.

    It'd be awesome to have this functionality!
     
    JeffJ and csanyk like this.
  2. YellowAfterlife

    YellowAfterlife ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    2,296
    If you need it for anything particular (and sooner), my custom code editor (free, open-source) has regular expression support for both local and global search
     
    Rekenq likes this.
  3. Rekenq

    Rekenq Member

    Joined:
    Sep 26, 2018
    Posts:
    11
    Hi! The editor looks great with all those features, no doubt I'll give it a try.

    I've got to say, your post on custom loading bar/screen for HTML5 saved me so many days of work.

    Thank you very much!
     
    YellowAfterlife likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice