Help with regular expressions

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Help with regular expressions

David Hilton
Forgive you interruption but I was just wondering what code would you use to write regular expressions in the pronunciation dictionary

Enviado do meu iPhone
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with regular expressions

John Isige
You use, unsurprisingly, regular expressions. You should be able to
google for tutorials. You may have used regular expressions already,
e.g. if you've ever searched for files. *.doc for example means match
anything followed by .doc. Regular expressions can get pretty
complicated, but the basics aren't too bad. I'd say find a tutorial that
grabs you, that you can understand I mean, and start experimenting.
They're one of those things you learn by doing really, in terms of
getting them in your memory and stuff.


On 2/20/2017 12:28, David Hilton wrote:

> Forgive you interruption but I was just wondering what code would you use to write regular expressions in the pronunciation dictionary
>
> Enviado do meu iPhone
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Nvda-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with regular expressions

Brian's Mail list account BY
I find them quite unintuitive though, and every time I need to use one I
have to get some files out only to find that what I thought would happen has
a snag attached to it.
 You almost need some kind of idiot front end like. What is the problem
 what is the string to search for what is the  expected result.  what
following chars should be ignored what previous chars should be ignored etc.

Then at the end
 The expression you need is
 Mind you probably the last person who tried to write one like this is
somewhere being looked after by those nice people in white coats.. grin
 Brian

[hidden email]
Sent via blueyonder.
Please address personal email to:-
[hidden email], putting 'Brian Gaff'
in the display name field.
----- Original Message -----
From: "John Isige" <[hidden email]>
To: "NVDA screen reader development" <[hidden email]>
Sent: Monday, February 20, 2017 7:49 PM
Subject: Re: [Nvda-devel] Help with regular expressions


> You use, unsurprisingly, regular expressions. You should be able to
> google for tutorials. You may have used regular expressions already,
> e.g. if you've ever searched for files. *.doc for example means match
> anything followed by .doc. Regular expressions can get pretty
> complicated, but the basics aren't too bad. I'd say find a tutorial that
> grabs you, that you can understand I mean, and start experimenting.
> They're one of those things you learn by doing really, in terms of
> getting them in your memory and stuff.
>
>
> On 2/20/2017 12:28, David Hilton wrote:
>> Forgive you interruption but I was just wondering what code would you use
>> to write regular expressions in the pronunciation dictionary
>>
>> Enviado do meu iPhone
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Nvda-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/nvda-devel
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Nvda-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nvda-devel 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with regular expressions

Alberto Buffolino
In reply to this post by David Hilton
David Hilton (il 20/02/2017 19.28) ha scritto:
> Forgive you interruption but I was just wondering what code would you
> use to write regular expressions in the pronunciation dictionary
Hi David,
see Python 2.7 documentation for re module:
https://docs.python.org/2/library/re.html
It's my main reference for regular expressions, also working in Java
(the syntax is quite identical in many languages).
Alberto

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with regular expressions

John Isige
In reply to this post by Brian's Mail list account BY
That's kind of why I mentioned a tutorial and use. Regular expressions
can get pretty damn complicated right enough, but a lot of times you
don't need that complexity. Just depends on what kind of processing you
want to do for your text. I don't understand most of them either, and
haven't had to use them in ages so have probably forgotten most of what
I knew. But it's really one of those things you want to start simple and
build as necessary, and not try to cram the whole thing into your head.
I mean, unless you'd be happy to see those nice young men in their clean
white coats ...


On 2/21/2017 2:37 AM, Brian's Mail list account BY wrote:

> I find them quite unintuitive though, and every time I need to use one I
> have to get some files out only to find that what I thought would happen has
> a snag attached to it.
>   You almost need some kind of idiot front end like. What is the problem
>   what is the string to search for what is the  expected result.  what
> following chars should be ignored what previous chars should be ignored etc.
>
> Then at the end
>   The expression you need is
>   Mind you probably the last person who tried to write one like this is
> somewhere being looked after by those nice people in white coats.. grin
>   Brian
>
> [hidden email]
> Sent via blueyonder.
> Please address personal email to:-
> [hidden email], putting 'Brian Gaff'
> in the display name field.
> ----- Original Message -----
> From: "John Isige" <[hidden email]>
> To: "NVDA screen reader development" <[hidden email]>
> Sent: Monday, February 20, 2017 7:49 PM
> Subject: Re: [Nvda-devel] Help with regular expressions
>
>
>> You use, unsurprisingly, regular expressions. You should be able to
>> google for tutorials. You may have used regular expressions already,
>> e.g. if you've ever searched for files. *.doc for example means match
>> anything followed by .doc. Regular expressions can get pretty
>> complicated, but the basics aren't too bad. I'd say find a tutorial that
>> grabs you, that you can understand I mean, and start experimenting.
>> They're one of those things you learn by doing really, in terms of
>> getting them in your memory and stuff.
>>
>>
>> On 2/20/2017 12:28, David Hilton wrote:
>>> Forgive you interruption but I was just wondering what code would you use
>>> to write regular expressions in the pronunciation dictionary
>>>
>>> Enviado do meu iPhone
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Nvda-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/nvda-devel
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Nvda-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/nvda-devel
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Nvda-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with regular expressions

David Hilton
In reply to this post by Brian's Mail list account BY
Thank you again for your time, and for the information.

Enviado desde mi iPhone

> El feb. 21, 2017, a las 1:37 AM, Brian's Mail list account BY <[hidden email]> escribió:
>
> I find them quite unintuitive though, and every time I need to use one I
> have to get some files out only to find that what I thought would happen has
> a snag attached to it.
> You almost need some kind of idiot front end like. What is the problem
> what is the string to search for what is the  expected result.  what
> following chars should be ignored what previous chars should be ignored etc.
>
> Then at the end
> The expression you need is
> Mind you probably the last person who tried to write one like this is
> somewhere being looked after by those nice people in white coats.. grin
> Brian
>
> [hidden email]
> Sent via blueyonder.
> Please address personal email to:-
> [hidden email], putting 'Brian Gaff'
> in the display name field.
> ----- Original Message -----
> From: "John Isige" <[hidden email]>
> To: "NVDA screen reader development" <[hidden email]>
> Sent: Monday, February 20, 2017 7:49 PM
> Subject: Re: [Nvda-devel] Help with regular expressions
>
>
>> You use, unsurprisingly, regular expressions. You should be able to
>> google for tutorials. You may have used regular expressions already,
>> e.g. if you've ever searched for files. *.doc for example means match
>> anything followed by .doc. Regular expressions can get pretty
>> complicated, but the basics aren't too bad. I'd say find a tutorial that
>> grabs you, that you can understand I mean, and start experimenting.
>> They're one of those things you learn by doing really, in terms of
>> getting them in your memory and stuff.
>>
>>
>>> On 2/20/2017 12:28, David Hilton wrote:
>>> Forgive you interruption but I was just wondering what code would you use
>>> to write regular expressions in the pronunciation dictionary
>>>
>>> Enviado do meu iPhone
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Nvda-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/nvda-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Nvda-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/nvda-devel 
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Nvda-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nvda-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Loading...