While recording scripts, you can record dynamic values like session ID, timestamp, and more.
These values may change for each session, and using the recorded values may cause the scripts to fail.
To avoid these failures, replace the dynamic values with variables that have the dynamic values stored in them. Then save the dynamic values in the variables using the regular expression extractor.
Image: Managing Regular
Expressions (REGEX) in JMeter Pro.
You can add a regular expressions extractor to the test plan by right-clicking on test plan -> add post processor -> regular expression extractor.