regex - How to match all between two words with regular expression -
i have this:
id 560 spec ... bla bla blah... blah... +#@% bla bla 43 bla ~ category other price $259.95 id 561 spec more blah blah... blah... blah... @#$^y% bla bla bla category other price $229.95 need between spec , category.
work [.[:punct:]\r\n\s\t]+[^category]+ in notepad++ need in c#.
in perl, it's simple /spec(.*?)category/gs. don't know regular expressions in c#, looking non-greedy match-all between 2 words.
Comments
Post a Comment