Jump to content

stringsplit


legend
 Share

Recommended Posts

Here is a selection to choose from.

Local $sString = "File c:\windows\system32\notepad.exe" ; FireFox, you are right. This is not a "stringsplit". I would call it a string.

Local $aArray = StringSplit($sString, " ", 2) ; This is a "stringsplit" function which splits the string.

MsgBox(0, "StringSplit", $aArray[1])
;or

MsgBox(0, "StringTrimLeft", StringTrimLeft($sString, 5))
;or

MsgBox(0, "StringReplace", StringReplace($sString, "File ", ""))
;or

MsgBox(0, "StringRegExpReplace", StringRegExpReplace($sString, "(?i)File ([\a-z]:.+$)", "\1"))
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...