I have a string:
\"ImageDimension=655x0;ThumbnailDimension=0x0\".
I have to extract first number (\"655\" string) coming in be
Sure, it's pretty easy. The regex pattern you're looking for is:
^ImageDimension=(\d+)x0;.+$
The first group in the match is the number you want.