Barotrauma Regex Tutorial Part 1.0: Character Classes

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ส.ค. 2024

ความคิดเห็น • 49

  • @DimensionalExpansion
    @DimensionalExpansion ปีที่แล้ว +8

    Please continue this series. You will be considered a saint in the community. At the very least, you will be a saint to me.

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว +1

      Haha thanks man that's very kind of you to say! I am considering more Barotrauma tutorial content in the future so stay tuned.☺

  • @FlamingToaster
    @FlamingToaster ปีที่แล้ว +11

    Really good content! I hope you continue this series as there is not much videos regarding RegEx in Barotrauma (besides few simple examples)

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว +1

      Thank you so much! Yes, there isn't much out there. I struggled to understand it for that reason. So I made something more in-depth and fundamental. More to come in the next few months!

  • @FreeD00M
    @FreeD00M หลายเดือนก่อน

    Nice Tutorial Clear and Concise.

  • @fantomkl1142
    @fantomkl1142 2 หลายเดือนก่อน

    I didn’t find anything about regex on Russian-language TH-cam, so I came here. Thank you, my English-speaking colleague, you really helped me understand.

  • @user-bi4tw6oo8u
    @user-bi4tw6oo8u หลายเดือนก่อน

    thank you mate for all these 4 videos about this component

  • @dominikcejka8828
    @dominikcejka8828 ปีที่แล้ว +4

    Wow! Best regex baro tutorial I have came across! Really good explanation, I hope for more parts to come! Subscribed.

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว +1

      Thanks so much!

  • @Antoine-bv8vs
    @Antoine-bv8vs ปีที่แล้ว

    The youtube ads kicked in right after you said "And now, a word from our sponsors", I've never witnessed such perfect timing in my life. Thanks a lot for the videos :D

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      Hahaha that's amazing! And you're most welcome!

  • @ShinraSetora
    @ShinraSetora ปีที่แล้ว +1

    Thank you very much for the explanation, all your vids on regex were very well explained, very useful, I could use it to make new things in my sub that I didn't think I would be able to, great vid !

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      That's amazing! I'm so glad the explanation helped open up new horizons for you! Happy subbing! ⚓

  • @Mik-hm9tb
    @Mik-hm9tb ปีที่แล้ว +1

    Wow, ty for covering this. My mind came up with ultimate plan already. That is, combining regex component with logic gates and operating fully automatic submarine, like 'push that button and it will do the rest'. I know there is autopilot, but while impressive in navigating around cliffs it's not as flexible as human captain would be (or my fabulous sub' operating system >:-] ).

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      That's awesome! Regex with other components can do amazing things! :D

  • @illadiel6049
    @illadiel6049 9 หลายเดือนก่อน

    Got an ad break as soon as you said, "And now, a word from our sponsors"

    • @Rogvaldr
      @Rogvaldr  8 หลายเดือนก่อน

      Haha those youtube algorithms!

  • @SonicGasoline
    @SonicGasoline ปีที่แล้ว

    Thank you for taking the time to make this!

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      Thanks so much! It took a lot of work but totally worth it. And thank you for watching and commenting so others can find it too! 😄

  • @jameskim6398
    @jameskim6398 ปีที่แล้ว

    Thank you for this helpful video

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      You're most welcome! :D

  • @grandfremdling3841
    @grandfremdling3841 ปีที่แล้ว

    Nice

  • @anvion1161
    @anvion1161 ปีที่แล้ว +3

    we need more tutorials on baro wiring, thank you sm

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว +1

      That's a great suggestion! I'm no electrical engineer but I'll certainly give this some thought for the near future. Thank you!

  • @chadoftoons
    @chadoftoons ปีที่แล้ว

    I feel like what is missing in the video is saying wheter the output can be what you found in barotrauma because while finding what you are looking for and outputting something completly different is useful its just as useful to be able to output what you have found and if you can't do that what you can do instead.

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      That's a really good point! At 1:22, I should have said something more like this:
      Output indicates something you found or not found, and the result displayed is copied from a direct entry (e.g. via a Memory component) or a capture group.

  • @Druler5
    @Druler5 6 หลายเดือนก่อน

    Thanks for the intro to regex! It was really confusing me. What's confusing me even more is that a Memory + Terminal -> Concat -> Regex doesn't seem to work. Always producing a False Output no matter what syntax I try. Would you be able to know anything about resolving that?

    • @Rogvaldr
      @Rogvaldr  4 หลายเดือนก่อน

      You're welcome! I'm glad this video cleared some things up. As for your question about memory/terminal/concat use with regex, I tried this on my end and I was able to get a True Output using your combination.
      I hooked up every component's output to a Text Display so I could see everything that was happening while I configured it. I noticed Concat does not update until there is a new input in the Terminal. Here were my inputs for each component:
      Memory - a
      Terminal - b
      Concat combined this as - ab
      Regex Expression - \w
      Regex Output - PASS
      Regex False output - FAIL
      Tick on Regex Continuous output.
      Based on the above configuration, the output said "PASS". For comparison, I used \d and it said "FAIL". So it worked as expected. So maybe try replicating that first and if it works, then see what you can adjust from there. I hope that helps!

  • @Sprayer-px3tu
    @Sprayer-px3tu ปีที่แล้ว

    Rejular Expressions!

  • @shortround9869
    @shortround9869 10 หลายเดือนก่อน

    I'm curious, what if 2 expressions conflict each other, what happens to the output?

    • @Rogvaldr
      @Rogvaldr  9 หลายเดือนก่อน

      It'll probably be fine and just output both because all you're telling regex to do is find (for example) a number followed by a non-number.

  • @lucasbastosrodrigues140
    @lucasbastosrodrigues140 หลายเดือนก่อน

    :)

  • @daviconceicaodeoliveira3232
    @daviconceicaodeoliveira3232 ปีที่แล้ว

    how do i make so that specific numbers get choosen to send a signal, like only a range of numbers from 0 to 12

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      I love this question! It's quite complicated to pull off and this video does not cover enough basics for it. My upcoming barotrauma tutorials will cover this in more detail. But here's a quick solution:
      ^\d?\d$
      This accepts everything from 0 to 99. Searching for 0 to 12 will look more like this:
      ^(10|11|12|\d)$
      So anchors, alternation and a capture group is used to give you specific control over what you are searching for.

  • @Loshode
    @Loshode 8 หลายเดือนก่อน

    Regex jumpscare

    • @Rogvaldr
      @Rogvaldr  8 หลายเดือนก่อน

      lol

  • @binhtang5764
    @binhtang5764 8 หลายเดือนก่อน

    man i feel like highschool again

    • @Rogvaldr
      @Rogvaldr  8 หลายเดือนก่อน

      Good times! :D

    • @binhtang5764
      @binhtang5764 8 หลายเดือนก่อน

      @@Rogvaldr it suck btw

    • @Rogvaldr
      @Rogvaldr  8 หลายเดือนก่อน

      I'm sorry to hear that. High school can be tough. I hope life is getting better now for you. Or at least enjoying some barotrauma diving! :)

  • @Noteclip
    @Noteclip ปีที่แล้ว +2

    the devs really tricked everyone into learning a tool that is useful outside of a game...

    • @Rogvaldr
      @Rogvaldr  ปีที่แล้ว

      Haha yeah! Clever game features.

    • @phoomham9217
      @phoomham9217 6 วันที่ผ่านมา

      "The more you know"

  • @alecu5885
    @alecu5885 11 หลายเดือนก่อน

    how do you know all this

    • @Rogvaldr
      @Rogvaldr  11 หลายเดือนก่อน

      I had to study it using several web articles and test things out in Barotrauma, which has a unique game environment. I had help from friends too. :)

  • @esistgemingzeit
    @esistgemingzeit 7 หลายเดือนก่อน

    dude how can you make such an elaborate tutorial and still call it "rejex" you wouldnt say "rejular expression" would you

    • @Rogvaldr
      @Rogvaldr  5 หลายเดือนก่อน

      Hahaha yeah I dunno man that just seems to be how everyone else is saying it in my world. Plus it rolls of the tongue better for me :D