Hi, I need to help in Regex
Scenario 1: Need to extract first sentence till the \n and place it in a local variable
Example:
If below is the content in one of the variable, then I need to fetch only 'This is my sentence1' and place it in another local variable
-----------------------
This is my sentence1\nThis is my sentence 2\nThis is my sentence3\n
----------------------
Scenario 2: Need to skip the first sentence till the \n, and place the rest in local variable.
Example:
If below is the content in one of the variable, then I need to fetch 'This is my sentence 2\nThis is my sentence3\n' and place it in another local variable
-----------------------
This is my sentence1\nThis is my sentence 2\nThis is my sentence3\n
----------------------
Scenario 1: Need to extract first sentence till the \n and place it in a local variable
Example:
If below is the content in one of the variable, then I need to fetch only 'This is my sentence1' and place it in another local variable
-----------------------
This is my sentence1\nThis is my sentence 2\nThis is my sentence3\n
----------------------
Scenario 2: Need to skip the first sentence till the \n, and place the rest in local variable.
Example:
If below is the content in one of the variable, then I need to fetch 'This is my sentence 2\nThis is my sentence3\n' and place it in another local variable
-----------------------
This is my sentence1\nThis is my sentence 2\nThis is my sentence3\n
----------------------