I have a simple question about regular expression and Im new to php so sry about my bad questions , what is the meaning of ^ and $ in regular expression and please give examples that if we dont put them it will go wrong . thank you
kshahnazari
0
Newbie Poster
Recommended Answers
Jump to Post
^
indicates the start of a string,$
indicates the end. You can read more about anchors here.
All 4 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
kshahnazari
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
kshahnazari
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.