Selecting part of file name for web search

By this simple script I created few web search menu buttons for my daily usage.

https://www.google.com/search?q={file|noext|urlencode}

How to modify this script for selecting part of file name for web search? Thanks in advance.

If you use JScript or VBScript you can do anything you want to the filename and then run a command with the result.

(Set the button's function type to Script Function to use scripting languages in a button.)

Thanks for reply. Looks like I have to give up this idea cause I'm not a programmer. :stuck_out_tongue:

You can copy the file name to the clipboard with some regex and then use {clip} in your search statement.