Hi Praveen , value1 is the string that I will pass in regex also the date. Also there are 11 spaces before Y/N and 3 spaces after Y/N. Shall it be like :
I am sorry I am newbie in regex.
I have mainframe screen scraped in string having multiple rows with records like
X1 Y 11/12/2023 CC1 DD EE
X2 N 11/12/2023 CC2 DD EE
X3 Y 02/12/2023 CC3 DD EE
X4 N 02/12/2023 CC4 DD EE
X5 Y 11/12/2023 CC5 DD EE
So this i have in string variable mainframescreen now .
variable value1 = X1
variable value2 = 11/12/2023
Now i want to check whether this mainframescreen string has value like :
value1 Y value2
here u can see there is space between value1 and Y . also there is space between Y and value2.
Please share the regex to match.