boundary - Regex for word between symbols -
does knows how make regex looks word between 2 instances of same symbol?
for example, in "gaag gaga $fafaga$afa", need "fafaga", between 2 "$" symbols.
you can use following regex if want 1 match :
\$[^$]*\$ note: works matches if use modifier g make global.
and following matches :
\$.*?\$ and if don't want $ can use capture grouping , return group after match :
\$([^$]*)\$
Comments
Post a Comment