R Ramezanpour Active Member Licensed User Longtime User Apr 8, 2015 #1 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"
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"
narek adonts Well-Known Member Licensed User Longtime User Apr 9, 2015 #2 Use "your string".substring Upvote 0
R Ramezanpour Active Member Licensed User Longtime User Apr 9, 2015 #3 narek adonts said: Use "your string".substring Click to expand... Hi there And thanks for your help Only problem here is that: I do not know content of the text and characters. I want to create string searcher... Upvote 0
narek adonts said: Use "your string".substring Click to expand... Hi there And thanks for your help Only problem here is that: I do not know content of the text and characters. I want to create string searcher...
narek adonts Well-Known Member Licensed User Longtime User Apr 9, 2015 #4 "your string".substring2("your string".contains("search string"), "search string".size) Upvote 0
R Ramezanpour Active Member Licensed User Longtime User Apr 9, 2015 #5 narek adonts said: "your string".substring2("your string".contains("search string"), "search string".size) Click to expand... 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
narek adonts said: "your string".substring2("your string".contains("search string"), "search string".size) Click to expand... 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
narek adonts Well-Known Member Licensed User Longtime User Apr 9, 2015 #6 you should create your expression to filter image url from string. search on internet. maybe there is already a regex expression for this. Upvote 0
you should create your expression to filter image url from string. search on internet. maybe there is already a regex expression for this.
R Ramezanpour Active Member Licensed User Longtime User Apr 9, 2015 #7 narek adonts said: you should create your expression to filter image url from string. search on internet. maybe there is already a regex expression for this. Click to expand... I want to create instagram downloader can you help me to use this method or other method? Upvote 0
narek adonts said: you should create your expression to filter image url from string. search on internet. maybe there is already a regex expression for this. Click to expand... I want to create instagram downloader can you help me to use this method or other method?
narek adonts Well-Known Member Licensed User Longtime User Apr 9, 2015 #8 I dont know what type of img scr is using instagram im their html code Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Apr 10, 2015 #10 Share your code snippet so others will know how to use regex and matcher Upvote 0
R Ramezanpour Active Member Licensed User Longtime User Apr 10, 2015 #11 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
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