Created
March 25, 2015 19:16
-
-
Save tncbbthositg/b35b655b459e24cebca1 to your computer and use it in GitHub Desktop.
Regex to convert hibernate single line sql into something useful
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?:Hibernate: )|(( )(?:(?:\S)+ as (?:\S)+,?|\b(and|or|on))|\b(select|from|where|(?:inner|left) ?(?:outer )?join)\b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$2$2$2$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment