-3

I'm not sure what the code below means. I know how to use match, but I'm not sure on what the brackets and "^" signs mean. Is there a website to where I can understand what all you can do with match?

var imagesURL;
imagesURL = html.match(/CapImg[^"']*/g);
Joe Hill
  • 49
  • 4
  • `[]` are character class and `^` inside character class at 0th index means negation ( which means anything except the characters in characters class ) else it will mean just `^` you read on [here](https://www.regular-expressions.info/charclass.html) – Code Maniac Apr 14 '19 at 15:59

1 Answers1

1

match is usually used along with RegExp to search through a data for a particular value or pattern of values. ..

You should rather go and read about JavaScript RegExp (or Regular Expression).

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions