-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract substring after stop word #637
Comments
if the examples you give are contained in the search string
Something like ( untested ) mind the spaces, and check https://regex101.com/ for reference |
/^(Il |Lo |La |I |Gli |Le |L')//g Thanks Mike, it doesn't seem working well... |
What is your search string? It seems to be working for me |
Strangely it works from some website (from github), but not from all ones: not from google search for example. |
Could you clarify a little. When you say it's not working "from" a website, are you saying if you select text on those particular websites ( google for instance ) and search through this addon, using the engine with the template |
Yes, I mean this. |
Is the problem due to case sensitivity or a leading space? |
Correct, that was the problem, now it works perfectly, thank again , Mike!
|
No prob. Cheers! |
Hi Mike, may a ask you a question? Given this template URL in ContextSearch:
https://www.bibliotechediroma.it/opac/query/%s?context=tmatm
I need to extract the substrings after these stop-words (determinative articles) at the beginning of the input string (when they are present):
Il
,Lo
,La
,I
,Gli
,Le
,L'
Here are some examples:
La
vita sulla terra e il futuro del genere umano > vita sulla terra e il futuro del genere umanoIl
nome della rosa > nome della rosaL'
avaro > avaroLa
globalizzazione e i suoi oppositori > globalizzazione e i suoi oppositoriI
demoni > demoniI found something similar here.
Thanks very much!
The text was updated successfully, but these errors were encountered: