Source : Learn to combine RxJs sequences with super intuitive interactive diagrams
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"public_identifier": "bijender-kumar-95516526", | |
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/bijender-kumar-95516526/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20240405%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20240405T023214Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=7cfee5eaa5e7d8d82db8a81d9f57bcc1e83e333f503557b1eef921de11472408", | |
"background_cover_image_url": null, | |
"first_name": "Bijender", | |
"last_name": "Kumar", | |
"full_name": "Bijender Kumar", | |
"follower_count": 573, | |
"occupation": "Senior Manager, Data Engineering at CVS Health at CVS Health", | |
"headline": "Senior Manager, Data Engineering at CVS Health", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you want to match strings that start with hey, use the ^ operator: | |
/^hey/.test('hey') //✅ | |
/^hey/.test('bla hey') //❌ | |
If you want to match strings that end with hey, use the $ operator: | |
/hey$/.test('hey') //✅ | |
/hey$/.test('bla hey') //✅ | |
/hey$/.test('hey you') //❌ | |
Combine those, and match strings that exactly match hey, and just that string: | |
/^hey$/.test('hey') //✅ |