Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. How would i split by emoji?

How would i split by emoji?

Scheduled Pinned Locked Moved Help
10 Posts 4 Posters 1.7k Views 1 Watching
  • 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.
  • JaecadeJnightJ Offline
    JaecadeJnightJ Offline
    JaecadeJnight
    Mod Helper
    wrote on last edited by
    #1

    I have a project here, displaying a list with every single emoji:

    https://play.creaticode.com/projects/68941e23be82be430b48587f

    Now I want to make a table with two columns, Emoji, and Name. I need to use this list, but my issue is that I’m not sure how to make that table using this list. The main issue I’m facing is that emojis are not one character all the time. For instance, while “a” and “🇩🇴” are visually one character, they actually aren’t because emojis sometimes use zero width joiners and even skin tone modifiers, for instance, when 👊🏼 is expanded you can see the fist and the skin tone modifier.

    Is there an easy way or possible regex thing I could use to split a string like “😀 smiley face” into “😀” and “smiley face” to put into a table?

    #LLJW
    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

    DreamSMP_LuckD CreatiCodeI 2 Replies Last reply
    0
    • JaecadeJnightJ JaecadeJnight

      I have a project here, displaying a list with every single emoji:

      https://play.creaticode.com/projects/68941e23be82be430b48587f

      Now I want to make a table with two columns, Emoji, and Name. I need to use this list, but my issue is that I’m not sure how to make that table using this list. The main issue I’m facing is that emojis are not one character all the time. For instance, while “a” and “🇩🇴” are visually one character, they actually aren’t because emojis sometimes use zero width joiners and even skin tone modifiers, for instance, when 👊🏼 is expanded you can see the fist and the skin tone modifier.

      Is there an easy way or possible regex thing I could use to split a string like “😀 smiley face” into “😀” and “smiley face” to put into a table?

      DreamSMP_LuckD Offline
      DreamSMP_LuckD Offline
      DreamSMP_Luck
      trusted helpers
      wrote on last edited by
      #2

      @jeffreyrb03-gmail no code is connected in the code, how does it work

      [■■■■■■■■■□] 90% now playing: at ease by ebaycarson

      JaecadeJnightJ 1 Reply Last reply
      1
      • JaecadeJnightJ JaecadeJnight

        I have a project here, displaying a list with every single emoji:

        https://play.creaticode.com/projects/68941e23be82be430b48587f

        Now I want to make a table with two columns, Emoji, and Name. I need to use this list, but my issue is that I’m not sure how to make that table using this list. The main issue I’m facing is that emojis are not one character all the time. For instance, while “a” and “🇩🇴” are visually one character, they actually aren’t because emojis sometimes use zero width joiners and even skin tone modifiers, for instance, when 👊🏼 is expanded you can see the fist and the skin tone modifier.

        Is there an easy way or possible regex thing I could use to split a string like “😀 smiley face” into “😀” and “smiley face” to put into a table?

        CreatiCodeI Offline
        CreatiCodeI Offline
        CreatiCode
        wrote on last edited by
        #3

        @jeffreyrb03-gmail

        Maybe you can split each item in the list by SPACE, then the first part will be the emoji? And the rest of the item will be the name?

        JaecadeJnightJ 2 Replies Last reply
        1
        • DreamSMP_LuckD DreamSMP_Luck

          @jeffreyrb03-gmail no code is connected in the code, how does it work

          JaecadeJnightJ Offline
          JaecadeJnightJ Offline
          JaecadeJnight
          Mod Helper
          wrote on last edited by
          #4

          @dreamsmp_luck i’m just showing a list, which doesn’t need code. However i did use code to create the list from a string, but you can click the blocks and then its not needed to have a green flag block.

          #LLJW
          <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

          1 Reply Last reply
          0
          • CreatiCodeI CreatiCode

            @jeffreyrb03-gmail

            Maybe you can split each item in the list by SPACE, then the first part will be the emoji? And the rest of the item will be the name?

            JaecadeJnightJ Offline
            JaecadeJnightJ Offline
            JaecadeJnight
            Mod Helper
            wrote on last edited by
            #5

            @info-creaticode said in How would i split by emoji?:

            @jeffreyrb03-gmail

            Maybe you can split each item in the list by SPACE, then the first part will be the emoji? And the rest of the item will be the name?

            Oh wait, that is true. That should work because there’s a space after each emoji. Thank you, I didn’t see that.

            #LLJW
            <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

            1 Reply Last reply
            0
            • CreatiCodeI CreatiCode

              @jeffreyrb03-gmail

              Maybe you can split each item in the list by SPACE, then the first part will be the emoji? And the rest of the item will be the name?

              JaecadeJnightJ Offline
              JaecadeJnightJ Offline
              JaecadeJnight
              Mod Helper
              wrote on last edited by
              #6

              @info-creaticode I’ve figured it out, I can just delete all words and then trim extra whitespace with regex easily. Your suggestion helped me get there, so thank you!
              IMG_0126.jpeg

              #LLJW
              <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

              CreatiCodeI 1 Reply Last reply
              0
              • JaecadeJnightJ JaecadeJnight

                @info-creaticode I’ve figured it out, I can just delete all words and then trim extra whitespace with regex easily. Your suggestion helped me get there, so thank you!
                IMG_0126.jpeg

                CreatiCodeI Offline
                CreatiCodeI Offline
                CreatiCode
                wrote on last edited by
                #7

                @jeffreyrb03-gmail

                How about this?

                ffec8e60-42cd-49c8-923b-55b8bcaae518-image.png

                JaecadeJnightJ 3 Replies Last reply
                1
                • CreatiCodeI CreatiCode

                  @jeffreyrb03-gmail

                  How about this?

                  ffec8e60-42cd-49c8-923b-55b8bcaae518-image.png

                  JaecadeJnightJ Offline
                  JaecadeJnightJ Offline
                  JaecadeJnight
                  Mod Helper
                  wrote on last edited by
                  #8

                  @info-creaticode oh that works perfect! Thank you

                  #LLJW
                  <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                  1 Reply Last reply
                  0
                  • CreatiCodeI CreatiCode

                    @jeffreyrb03-gmail

                    How about this?

                    ffec8e60-42cd-49c8-923b-55b8bcaae518-image.png

                    JaecadeJnightJ Offline
                    JaecadeJnightJ Offline
                    JaecadeJnight
                    Mod Helper
                    wrote on last edited by
                    #9

                    @info-creaticode oh wait, not entirely IMG_0127.jpeg
                    item 8 is 😂 face with tears of joy

                    i’m trying out the regex still and i’ll give updates on my results

                    #LLJW
                    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                    1 Reply Last reply
                    0
                    • CreatiCodeI CreatiCode

                      @jeffreyrb03-gmail

                      How about this?

                      ffec8e60-42cd-49c8-923b-55b8bcaae518-image.png

                      JaecadeJnightJ Offline
                      JaecadeJnightJ Offline
                      JaecadeJnight
                      Mod Helper
                      wrote on last edited by
                      #10

                      @info-creaticode I managed to do it
                      https://play.creaticode.com/projects/68941e23be82be430b48587f

                      #LLJW
                      <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • CreatiCode