Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)
Test if `line_str` is a file path.

>>> is_file_path('/Users/me/code/OpenSearchResult/open_search_result.py:')
True
>>> is_file_path('C:\Users\me\test.txt:')
True
>>> is_file_path('5: def parse_line_number(line_str):')
False

        def is_file_path(line_str):
    """
    Test if `line_str` is a file path.

    >>> is_file_path('/Users/me/code/OpenSearchResult/open_search_result.py:')
    True
    >>> is_file_path('C:\\Users\\me\\test.txt:')
    True
    >>> is_file_path('5: def parse_line_number(line_str):')
    False
    """
    return re.match("^(/|\w:\\\).*:$", line_str) is not None
        


src/c/h/ChocolateyPackages-HEAD/EthanBrown.SublimeText2.UtilPackages/tools/PackageCache/OpenSearchResult/open_search_result.py   ChocolateyPackages(Download)
import os
import sublime, sublime_plugin
# Load with Python3, fallback to load with Python2
try:
    from .util import parse_line_number, is_file_path
except ValueError:
    from util import parse_line_number, is_file_path
            line_num = parse_line_number(line_str)
 
            if is_file_path(line_str) or line_num:
                valid_regions.append(line)
 
 
            line = self.view.substr(prev).strip()
            if is_file_path(line):
                return self.open_file_from_line(line, line_num)
 
                return
 
            if is_file_path(line_str):
                self.open_file_path(line_str)
            elif line_num:

src/o/p/OpenSearchResult-HEAD/open_search_result.py   OpenSearchResult(Download)
import os
import sublime, sublime_plugin
# Load with Python3, fallback to load with Python2
try:
    from .util import parse_line_number, is_file_path
except ValueError:
    from util import parse_line_number, is_file_path
            line_num = parse_line_number(line_str)
 
            if is_file_path(line_str) or line_num:
                valid_regions.append(line)
 
 
            line = self.view.substr(prev).strip()
            if is_file_path(line):
                return self.open_file_from_line(line, line_num)
 
                return
 
            if is_file_path(line_str):
                self.open_file_path(line_str)
            elif line_num: