Create regex from glob expression

后端 未结 6 402
梦如初夏
梦如初夏 2020-12-03 10:28

i write program that parse text with regular expression. Regular expression should be obtained from user. I deside to use glob syntax for user input, and convert glob string

6条回答
  •  广开言路
    2020-12-03 10:57

    In R, there's the glob2rx function included in the base distribution:

    http://stat.ethz.ch/R-manual/R-devel/library/utils/html/glob2rx.html

提交回复
热议问题