I've been trying to replace patterned occurrences from copy pasted 24 page string from PDF, to create array of collected substrings in react.js. The format is as follows:
var result = /(?<= startpoint)(.*)(?=endpoint)/g;
Due to the fact that symbols are included in the string, I am trying to delete '/' symbols from above result.
var symbremoved = result.replace(/[/]/, "");
Yet I get an error saying result.replace is not a function.
Is there a rule that patterned Regular Expressions I have to follow?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.