RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Tex / Latex Matcher
Expression
(?<=[[]tex[]]).*?(?=[[]/tex[]])
Description
This expression helps in finding any text inside [tex] – [/tex] tags. For example returns x+y=z for the following input [tex]x+y=z[/tex] Was written for parsing LaTex equations written by users in Html editor. Despite its’ original purpose it can be used for matching of any arbitrary tags in squared brackets.
Matches
[tex]x+y=10[/tex] | [tex] i \hbar {\partial \over \partial t} \Psi(x,\,t)= -{\hbar^2 \over 2m} {\partial^2 \over \partial x^2} \Psi(x,\,t)+ V(x)\Psi(x,\,t)\, [/tex] | [tex] [/tex]
Non-Matches
No match [tex] [/tx] | [tex] NO match [tex] | [tx] No match [/tex]
Author Rating: Not yet rated. Bashir Magomedov
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials