Regex matching beginning AND end strings

前端 未结 5 535
长情又很酷
长情又很酷 2020-12-05 06:50

This seems like it should be trivial, but I\'m not so good with regular expressions, and this doesn\'t seem to be easy to Google.

I need a regex that starts with the

5条回答
  •  爱一瞬间的悲伤
    2020-12-05 07:20

    Well, the simple regex is this:

    /^dbo\..*_fn$/
    

    It would be better, however, to use the string manipulation functionality of whatever programming language you're using to slice off the first four and the last three characters of the string and check whether they're what you want.

提交回复
热议问题