Jump to content

StringSplit... kinda


Seminko
 Share

Go to solution Solved by mikell,

Recommended Posts

Hey fellas,

I have a string and please note it is going to be dynamic:

6||: [      |meatflycze|,      |oze_g|    ]  }}

What I need is to somehow extract the strings between these two characters: " | " and put them one after another. So the string above would become:

meatflycze, oze_g

Any ideas please?

Edited by Seminko
Link to comment
Share on other sites

 

:)

$str = "6||: [      |meatflycze|,      |oze_g|    ]  }}"

$str = StringReplace(StringRegExpReplace($str, '[^[:alpha:]_,]', ""), ",", ", ")
Msgbox(0,"", $str)

 

shouldn't this string give 3 substrings? it gives 2 instead

$str = "6||: [      |meatf| |lycze|,      |oze_g|    ]  }}"

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

Open the file in overwrite mode :)

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...