Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
Regex Javascript get all characters before <br> tag
//JavaScript-C24.2.0 (SpiderMonkey) var coverpage = "Figure 7865 Jets flying over the Gulf of Mexico Hello Mary Lou good bye heart<br>Figure 1234 Jets flying over the Gulf of Mexico Hello Mary Lou good bye heart<br>"; var regex = /(?:Figure).(.*?)(?=<br>)/g; var foundFig = coverpage.match(regex); print(foundFig);
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Triangle
Objects
Time Waister
Just stop thinking about it and go eat
BinaryGap, javascript - Find longest sequence of zeros in binary representation of an integer.
Dum
Rocket Science
ComposeWordsGrid
Tyu
game
Please log in to post a comment.