I am trying to develop an app that contains an array with a huge number of words. I want to create a new filtered array from it. Filtering is done based on a pattern that I have managed to create using a regular expression. For example, I should be able to filter out the word “apple” with a pattern “ap_l_” from my array with words. Can anyone help me out?
Share
Use the below code it will filter the array