Theera Expert Licensed User Longtime User Jun 25, 2013 #1 Hi Erel, I've been understand your this,but I don't understand attached a part of picture which highlighted. Please explain more to me. P.S. Assume IP=192.168.0.1 Attachments patterned.png 4.2 KB · Views: 269
Hi Erel, I've been understand your this,but I don't understand attached a part of picture which highlighted. Please explain more to me. P.S. Assume IP=192.168.0.1
Erel B4X founder Staff member Licensed User Longtime User Jun 26, 2013 #2 It is easier to analyze it if you post the string instead of the image. This part means: all characters except dot. A better pattern would be \d+ Upvote 0
It is easier to analyze it if you post the string instead of the image. This part means: all characters except dot. A better pattern would be \d+
Theera Expert Licensed User Longtime User Jun 26, 2013 #3 Erel said: It is easier to analyze it if you post the string instead of the image. This part means: all characters except dot. A better pattern would be \d+ Click to expand... Hi Erel, My picture come from yours ,I've understand your guide,but I don't understand the coding in the picture. P.S. regex.IsMatch("(\d+).(\d+).(\d+).(\d+)" ,s) when s is Target string Upvote 0
Erel said: It is easier to analyze it if you post the string instead of the image. This part means: all characters except dot. A better pattern would be \d+ Click to expand... Hi Erel, My picture come from yours ,I've understand your guide,but I don't understand the coding in the picture. P.S. regex.IsMatch("(\d+).(\d+).(\d+).(\d+)" ,s) when s is Target string
Erel B4X founder Staff member Licensed User Longtime User Jun 26, 2013 #4 B4X: regex.IsMatch("\d+\.\d+\.\d+\.\d+" ,s) This code checks whether the string is made of: \d+ -> one or more digits \. -> a dot So it will return true for: 1.22.12999.12 And false for 2.442 Upvote 0
B4X: regex.IsMatch("\d+\.\d+\.\d+\.\d+" ,s) This code checks whether the string is made of: \d+ -> one or more digits \. -> a dot So it will return true for: 1.22.12999.12 And false for 2.442
Theera Expert Licensed User Longtime User Jun 26, 2013 #5 Why is it different from anothor one? Hi Erel, see this,I think that they are differance. m = Regex.Matcher("^(\d+)\.(\d+)\.(\d+)\.(\d+)$", ip) Click to expand... The last has both ^ and $ ,why not be m = Regex.Matcher("(\d+)\.(\d+)\.(\d+)\.(\d+)", ip) And The post #1, The character # is not special character which don't used \. Last edited: Jun 26, 2013 Upvote 0
Why is it different from anothor one? Hi Erel, see this,I think that they are differance. m = Regex.Matcher("^(\d+)\.(\d+)\.(\d+)\.(\d+)$", ip) Click to expand... The last has both ^ and $ ,why not be m = Regex.Matcher("(\d+)\.(\d+)\.(\d+)\.(\d+)", ip) And The post #1, The character # is not special character which don't used \.
Theera Expert Licensed User Longtime User Jun 26, 2013 #6 Hi all, I've found all of data as below already,Thank you once again. see more this,This thread is closed. Attachments found.png 6 KB · Views: 243 Last edited: Jun 26, 2013 Upvote 0
Hi all, I've found all of data as below already,Thank you once again. see more this,This thread is closed.