- From: tim duval <tim.duval11@gmail.com>
- Date: Mon, 3 Oct 2022 13:19:57 -0400
- To: "Shaw, Ryan" <ryanshaw@unc.edu>
- Cc: "public-n3-dev@w3.org" <public-n3-dev@w3.org>
Received on Monday, 3 October 2022 17:20:21 UTC
any reason why this is not working????
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix : <http://example.org/> .
{ ("13.4 kV" "^(?!.*\\..*\\.)[.\\d]+$") string:scrape ?s . }
=> { :test :has ?s } .
On Mon, Oct 3, 2022 at 12:57 PM tim duval <tim.duval11@gmail.com> wrote:
> will do!! thanks!!!!
>
>
> On Mon, Oct 3, 2022 at 12:55 PM Shaw, Ryan <ryanshaw@unc.edu> wrote:
>
>>
>>
>> > On Oct 3, 2022, at 12:43 PM, tim duval <tim.duval11@gmail.com> wrote:
>> >
>> > Regarding regular expressions:
>> > I find that string:matches() returns a boolean whether or not the
>> string matches the regular expression,
>> > I am looking to extract the number from the string based on the regular
>> expression.
>>
>> Check out string:scrape
>> https://w3c.github.io/N3/spec/string.html#vocab_string_scrape
>
>
Received on Monday, 3 October 2022 17:20:21 UTC