How can i remove pipe character in string using regex
JavaScript
3
Posts
2
Posters
3
Views
1
Watching
-
Hi, Good Day! I have a string, say '|abc|def|ghi|'. How can i remove the first pipe character in that string using regular expression? Thanks, ewin
-
I already got the answer. /^[|]/ - is the right regex that will match the first pipe in a string. thanks to [gskinner]
/^\|/ is enough.