Last post Oct 01, 2018 02:30 AM by Nan Yu
Sep 28, 2018 03:09 PM|imomentsvideo|LINK
I need to extract following from below string, can anyone help
String = "[payment is made within [ 10 ] Business Days of its due date.]"
Output Expected: [ 10 ] Business Days
Sep 29, 2018 10:54 AM|gadsweb|LINK
Are the numbers of char constants before and after you want to extract ?
If yes, have you a specific reason to use Regex?
Sep 30, 2018 06:46 PM|vktalla|LINK
Why do you want to use RegEx for this, we can just use string function to get the results we want. or Is there any reason for using Regex?
Oct 01, 2018 02:30 AM|Nan Yu|LINK
It's hard to give the answer without more information ,for example , does before and after [ 10 ] parts are fixed ? But as other members said , use string.Substring to extract out the parts by physical position is much simpler :