I need to extract width and height from the paper trim size i.e "228 x 152"
For example width = 228 and height 152
how to extract from this string "228 x 152"?
I need regex to read width and height from the string.
I need to extract width and height from the paper trim size i.e "228 x 152"
For example width = 228 and height 152
how to extract from this string "228 x 152"?
I need regex to read width and height from the string.
To get width, you need
StringHandling.EREPLACE("228 x 152"," *x.*","")
To get the height, you need
StringHandling.EREPLACE("228 x 152",".*x *","")
The *
matches zero or more spaces and .*
matches any 0 or more chars as many as possible.