I need to extract following from below string using REGEX, can anyone help
String = "[payment is made within [ 10 ] Business Days of its due date.]"
Output:
[ 10 ] Business Days
Please try this.
s/^\[payment is made within (\[ [0-9]* \]) Business Days.*$/\1 Business Days/
[0-9]+? Also I don't use regexp much, but is s/*/*/ a standard syntax or is it specific to sed?
([ [0-9]+ ] Business Days).