iOS Question search in string

Ramezanpour

Active Member
Licensed User
Longtime User
Hi

I want to search in string.

this is my string : "This is test,hi how are you im fine thank you"

i want to search a text start with hi and end with you

Now I want to return : "hi how are you"
 

Ramezanpour

Active Member
Licensed User
Longtime User
"your string".substring2("your string".contains("search string"), "search string".size)

thanks
but again , No :(

I want to to download a url (I use httpjob and i use site source code)

source code is string.

and in this source code , there is a photo URL (example: http://b4x.com/test.jpg)

and i want to find this and download this and show in image view and save in album
 
Upvote 0

Ramezanpour

Active Member
Licensed User
Longtime User
Of course!

B4X:
    Dim im As String


im = "https://igcdn-photos-e-a.akamaihd.net/hphotos-ak-xaf1/t51.2885-15/11117017_1625492971005836_1706300614_n.jpg"

Dim mm As Matcher
mm = Regex.Matcher("https://.*(jpg|mp4)",im)

Do While mm.Find
Log ( mm.Match)



Loop

  
Loop
 
Upvote 0
Top