Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex find first instace

adding ".*?" To a answer makes it non greedy

running <h2)*?>

on

<h2 style="text-align: center;">heading</h2>

will return <h2 style="text-align: center;">
 
PREVIOUS NEXT
Tagged: #regex #find #instace
ADD COMMENT
Topic
Name
7+2 =