cancel
Showing results for 
Search instead for 
Did you mean: 

search for regular expression within content

vincent-kali
Star Contributor
Star Contributor
Hi all,

I'd like to search for regex pattern within file content, to perform classification based on the result.
Example:
if a file contents a string like 'CUSTOMER XYZ', I want to extract XYZ string (as a variable after CUSTOMER key)
to use it in javascript.

My idea is to that in 2 steps:
- lucene search for 'CUSTOMER'
- apply regex pattern on result files contents (how to do that ?)

Does somebody have a better idea ? any suggestion ?

Thanks,
Vincent


1 REPLY 1

vincent-kali
Star Contributor
Star Contributor
any idea regarding document classification ?