Um, it’s kinda hard to see what you’re asking, but I think what you want is
new RegExp('1.*'+str,'i');
The period (.) matches any character and the * matches any character zero or more times. I’m not 100% on the syntax of that regex in javascript, but that should be a minor issue. Maybe a str.toString() is missing or something?
2
solved Search for a given row in a table [closed]