Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Regex blocks are very strict

    Feedback
    2
    2
    209
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tyller_
      Tyller_ Best Forum Helpers last edited by

      I have been messing with regex blocks and have found that they’re very strict without error catchers. If you enter an invalid regex (in the actual regex input or the flag input) and run it, it will soft crash your project, I also have found that regex

      I was making a regex to help separate markdown results, and after entering the regex “^(?=[).*?]$” (I’m fairly certain this was the last regex I used, it was this or a modified version of it) with the flags “gm” (neither in quotes inside the actual block) inside a regex () flag () search [list] block, it soft crashed, I reloaded and the project is hard crashed (reload button green screen of death), the project link is https://play.creaticode.com/projects/657b3d790919ac1fadb53337

      <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
      </div>

      info-creaticode 1 Reply Last reply Reply Quote 0
      • info-creaticode
        CreatiCode @Tyller_ last edited by

        @tyller_

        We will add a guard to the regex block and recover your project. Sorry about that.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post