Posts: 4,558
Threads: 1,463
Joined: Sep 2016
a string might fit the pattern of a window geometry like "700x400" or "700x400+100+100". what is a nice quick way to test if it does and get the numbers from it? the pattern is not valid if what is between the 'x' and '+' characters is not a string representing a number.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,558
Threads: 1,463
Joined: Sep 2016
i could not have come up with that. i expected someone would suggest "re". thanks for including the regex.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,558
Threads: 1,463
Joined: Sep 2016
what would be the pattern for just "700x400" by itself? i don't understand those question marks so i don't know if i need them. a string lacking digits before or after the "x" need to not match.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.