John1000 Posted November 14, 2023 Share Posted November 14, 2023 Quote Connection mode : Profile Channel : 4 Receive rate (Mbps) : 300 Transmit rate (Mbps) : 65 Signal : 83% Profile : AndroidAP_4013 Hosted network status : Not available Out of above text I want "AndroidAP_4013" with filter on "Profile". So far I got this: StringRegExp($text,"Profile.*:.*",$STR_REGEXPARRAYMATCH)[0] But this result in a string including "Profile :" How to? Link to comment Share on other sites More sharing options...
Solution Andreik Posted November 14, 2023 Solution Share Posted November 14, 2023 (?:Profile.*:(.*)) When the words fail... music speaks. Link to comment Share on other sites More sharing options...
mikell Posted November 15, 2023 Share Posted November 15, 2023 $txt = "Connection mode : Profile" & @crlf & _ " Channel : 4" & @crlf & _ " Receive rate (Mbps) : 300" & @crlf & _ " Transmit rate (Mbps) : 65" & @crlf & _ " Signal : 83%" & @crlf & _ " Profile : AndroidAP_4013" & @crlf & _ @crlf & _ " Hosted network status : Not available" Msgbox(0,"", StringRegExp($txt, 'Profile\h*:\h?(.*)', 1)[0] ) Use \h? to avoid matching a space between the colon and the A Musashi 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now