Posts

Showing posts from June, 2025

RegEx (Regular Expressions) NOTES

RegEx is a defined set of characters, which is arrange in an order, that follows some specific rules. It helps us to find some specific patterns in the string. Let suppose we have a big string and we want to find numbers/pattern in that, then we can use Regex to do it. ---------------------------------------------------- IMPORTANTS --------------------------------------------------- 1. U can use RegEx in VsCode by using CTRL + F (finding shortcut) then u will see 3 buttons in the finding input tag, then select the 3rd one -> Regex pattern. then u can write any regex u want in that input box.  2. Note: If u are using the regex in VsCode by using CTRL + F then you don't need to use the delimiters on that, it automatically put delimiters in input box.   1. Delimiters Delimiters means determining the limits or setting the limits/bountries.  For example: In HTML comments we have boundries like <!-- comment --> or In div we have starting to closing tag like <div>...